~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.cc

  • Committer: Jay Pipes
  • Date: 2010-02-27 23:47:33 UTC
  • mto: (1309.2.14 build)
  • mto: This revision was merged to the branch mainline in revision 1319.
  • Revision ID: jpipes@serialcoder-20100227234733-0e4pq1zxwluxud00
* Adds CREATE TABLE as a specific CreateTableStatement message in the
replication stream.
* Corrects previous incorrect behaviour where non-MyISAM tables were
incorrectly being defined with PACK_RECORD = TRUE.  This affected the
checksumming of the table.
* There is still one remaining test case failure in the create_table.test
case in the transaction log test suite regarding the incorrect setting
of Table::Index::IndexPart::compare_length.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1353
1353
 
1354
1354
  switch (session->lex->sql_command)
1355
1355
  {
 
1356
  case SQLCOM_CREATE_TABLE:
 
1357
    /*
 
1358
     * We are in a CREATE TABLE ... SELECT statement
 
1359
     * and the kernel has already created the table
 
1360
     * and put a CreateTableStatement in the active
 
1361
     * Transaction message.  Here, we add a new InsertRecord
 
1362
     * to a new Transaction message (because the above
 
1363
     * CREATE TABLE will commit the transaction containing
 
1364
     * it).
 
1365
     */
 
1366
    result= replication_services.insertRecord(session, table);
 
1367
    break;
1356
1368
  case SQLCOM_REPLACE:
1357
1369
  case SQLCOM_REPLACE_SELECT:
1358
1370
    /*