~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.cc

Merge Stewart (who merged Jay).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1392
1392
  */
1393
1393
  TransactionServices &transaction_services= TransactionServices::singleton();
1394
1394
 
 
1395
  /* 
 
1396
   * LP Bug #552420 
 
1397
   *
 
1398
   * Since open_temporary_table() doesn't invoke mysql_lock_tables(), we
 
1399
   * don't get the usual automatic call to StorageEngine::startStatement(), so
 
1400
   * we manually call it here...
 
1401
   */
 
1402
  to->s->getEngine()->startStatement(session);
 
1403
 
 
1404
  if (!(copy= new CopyField[to->s->fields]))
1395
1405
  if (!(copy= new CopyField[to->getShare()->fields]))
1396
1406
    return -1;
1397
1407