~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/drop_table.cc

  • Committer: Stewart Smith
  • Date: 2010-12-29 04:25:54 UTC
  • mto: (2099.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2100.
  • Revision ID: stewart@flamingspork.com-20101229042554-vmh48sapff89n2tf
error out with ER_TRANSACTIONAL_DDL_NOT_SUPPORTED in DROP TABLE if there is an ongoing transaction.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
  if (not drop_temporary)
95
95
  {
96
 
    if (not session->endActiveTransaction())
 
96
    if (session->inTransaction())
97
97
    {
 
98
      my_error(ER_TRANSACTIONAL_DDL_NOT_SUPPORTED, MYF(0));
98
99
      return true;
99
100
    }
100
101
  }