diff options
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 8b8ab430308..3219116c891 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -7526,9 +7526,11 @@ void THD::reset_for_next_command(bool do_clear_error) DBUG_ENTER("THD::reset_for_next_command"); DBUG_ASSERT(!spcont); /* not for substatements of routines */ DBUG_ASSERT(!in_sub_stmt); + DBUG_ASSERT(transaction->on); + /* Table maps should have been reset after previous statement except in the - case where we have locked tables + case where we have locked ables */ DBUG_ASSERT(binlog_table_maps == 0 || locked_tables_mode == LTM_LOCK_TABLES); |