1067
1066
if (options.has_max_rows())
1069
ss << options.max_rows();
1070
1068
destination.append("\nMAX_ROWS = ", 12);
1071
destination.append(ss.str());
1069
destination.append(boost::lexical_cast<string>(options.max_rows()));
1075
1072
if (options.has_min_rows())
1077
ss << options.min_rows();
1078
1074
destination.append("\nMIN_ROWS = ", 12);
1079
destination.append(ss.str());
1075
destination.append(boost::lexical_cast<string>(options.min_rows()));
1083
1078
if (options.has_user_set_auto_increment_value()
1084
1079
&& options.has_auto_increment_value())
1086
ss << options.auto_increment_value();
1087
1081
destination.append(" AUTO_INCREMENT=", 16);
1088
destination.append(ss.str());
1082
destination.append(boost::lexical_cast<string>(options.auto_increment_value()));
1092
1085
if (options.has_avg_row_length())
1094
ss << options.avg_row_length();
1095
1087
destination.append("\nAVG_ROW_LENGTH = ", 18);
1096
destination.append(ss.str());
1088
destination.append(boost::lexical_cast<string>(options.avg_row_length()));
1100
1091
if (options.has_checksum() &&
1161
1152
if (part.compare_length() != field.string_options().length())
1164
1154
destination.push_back('(');
1165
ss << part.compare_length();
1166
destination.append(ss.str());
1155
destination.append(boost::lexical_cast<string>(part.compare_length()));
1167
1156
destination.push_back(')');
1326
1315
destination.append(" VARCHAR(", 9);
1329
ss << field.string_options().length() << ")";
1330
destination.append(ss.str());
1317
destination.append(boost::lexical_cast<string>(field.string_options().length()));
1318
destination.append(")");
1333
1321
case Table::Field::BLOB: