~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.cc

  • Committer: tdavies
  • Date: 2010-10-15 05:42:42 UTC
  • mto: (1849.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1850.
  • Revision ID: tdavies@molly-20101015054242-pwurc94i9m0w1guh
File:drizzled/internal/my_static.h; Converted struct 'st_irem' to c++ class and renamed it 'irem'. Also added constructor, and made the changed name consistant in my_static.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
 
128
128
  switch (source.type())
129
129
  {
130
 
  case Statement::ROLLBACK_STATEMENT:
131
 
    {
132
 
      break;
133
 
    }
134
130
  case Statement::ROLLBACK:
135
131
    {
136
132
      sql_strings.push_back("ROLLBACK");
1200
1196
{
1201
1197
  switch (opt)
1202
1198
  {
 
1199
  case Table::ForeignKeyConstraint::OPTION_UNDEF:
 
1200
    break;
1203
1201
  case Table::ForeignKeyConstraint::OPTION_RESTRICT:
1204
1202
    destination.append("RESTRICT");
1205
1203
    break;
1209
1207
  case Table::ForeignKeyConstraint::OPTION_SET_NULL:
1210
1208
    destination.append("SET NULL");
1211
1209
    break;
1212
 
  case Table::ForeignKeyConstraint::OPTION_UNDEF:
1213
1210
  case Table::ForeignKeyConstraint::OPTION_NO_ACTION:
1214
1211
    destination.append("NO ACTION");
1215
1212
    break;
1216
 
  case Table::ForeignKeyConstraint::OPTION_SET_DEFAULT:
 
1213
  case Table::ForeignKeyConstraint::OPTION_DEFAULT:
1217
1214
    destination.append("SET DEFAULT");
1218
1215
    break;
1219
1216
  }
1266
1263
 
1267
1264
  destination.push_back(')');
1268
1265
 
1269
 
  if (fkey.has_update_option() and fkey.update_option() != Table::ForeignKeyConstraint::OPTION_UNDEF)
 
1266
  if (fkey.update_option() != Table::ForeignKeyConstraint::OPTION_UNDEF)
1270
1267
  {
1271
1268
    destination.append(" ON UPDATE ", 11);
1272
1269
    transformForeignKeyOptionToSql(fkey.update_option(), destination);
1273
1270
  }
1274
1271
 
1275
 
  if (fkey.has_delete_option() and fkey.delete_option() != Table::ForeignKeyConstraint::OPTION_UNDEF)
 
1272
  if (fkey.delete_option() != Table::ForeignKeyConstraint::OPTION_UNDEF)
1276
1273
  {
1277
1274
    destination.append(" ON DELETE ", 11);
1278
1275
    transformForeignKeyOptionToSql(fkey.delete_option(), destination);
1353
1350
      destination.push_back(')');
1354
1351
      break;
1355
1352
    }
1356
 
  case Table::Field::UUID:
1357
 
    destination.append(" UUID", 5);
1358
 
    break;
1359
1353
  case Table::Field::INTEGER:
1360
1354
    destination.append(" INT", 4);
1361
1355
    break;
1510
1504
    return Table::Field::ENUM;
1511
1505
  case DRIZZLE_TYPE_BLOB:
1512
1506
    return Table::Field::BLOB;
1513
 
  case DRIZZLE_TYPE_UUID:
1514
 
    return Table::Field::UUID;
1515
1507
  }
1516
1508
 
1517
1509
  assert(false);