~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.cc

  • Committer: earney
  • Date: 2010-10-04 13:15:05 UTC
  • mto: (1813.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1814.
  • Revision ID: earney@earney.homedns.org-20101004131505-1mknj0drou0am13f
removed old commented out statements and uncommmeted out first occurance of stringstream in date.cc since it sets the precision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1013
1013
  if (sql_variant == ANSI)
1014
1014
    return NONE; /* ANSI does not support table options... */
1015
1015
 
1016
 
  //stringstream ss;
1017
 
 
1018
1016
  if (options.has_comment())
1019
1017
  {
1020
1018
    destination.append(" COMMENT=", 9);
1043
1041
 
1044
1042
  if (options.has_max_rows())
1045
1043
  {
1046
 
    //ss << options.max_rows();
1047
1044
    destination.append("\nMAX_ROWS = ", 12);
1048
 
    //destination.append(ss.str());
1049
1045
    destination.append(boost::lexical_cast<string>(options.max_rows()));
1050
 
    //ss.clear();
1051
1046
  }
1052
1047
 
1053
1048
  if (options.has_min_rows())
1054
1049
  {
1055
 
    //ss << options.min_rows();
1056
1050
    destination.append("\nMIN_ROWS = ", 12);
1057
 
    //destination.append(ss.str());
1058
1051
    destination.append(boost::lexical_cast<string>(options.min_rows()));
1059
 
    //ss.clear();
1060
1052
  }
1061
1053
 
1062
1054
  if (options.has_user_set_auto_increment_value()
1063
1055
      && options.has_auto_increment_value())
1064
1056
  {
1065
 
    //ss << options.auto_increment_value();
1066
1057
    destination.append(" AUTO_INCREMENT=", 16);
1067
 
    //destination.append(ss.str());
1068
1058
    destination.append(boost::lexical_cast<string>(options.auto_increment_value()));
1069
 
    //ss.clear();
1070
1059
  }
1071
1060
 
1072
1061
  if (options.has_avg_row_length())
1073
1062
  {
1074
 
    //ss << options.avg_row_length();
1075
1063
    destination.append("\nAVG_ROW_LENGTH = ", 18);
1076
 
    //destination.append(ss.str());
1077
 
    //ss.clear();
1078
1064
    destination.append(boost::lexical_cast<string>(options.avg_row_length()));
1079
1065
  }
1080
1066
 
1141
1127
      {
1142
1128
        if (part.compare_length() != field.string_options().length())
1143
1129
        {
1144
 
          //stringstream ss;
1145
1130
          destination.push_back('(');
1146
 
          //ss << part.compare_length();
1147
 
          //destination.append(ss.str());
1148
1131
          destination.append(boost::lexical_cast<string>(part.compare_length()));
1149
1132
          destination.push_back(')');
1150
1133
        }
1307
1290
      else
1308
1291
        destination.append(" VARCHAR(", 9);
1309
1292
 
1310
 
      //stringstream ss;
1311
 
      //ss << field.string_options().length() << ")";
1312
 
      //destination.append(ss.str());
1313
1293
      destination.append(boost::lexical_cast<string>(field.string_options().length()));
1314
1294
      destination.append(")");
1315
1295
    }