diff options
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 75add1e7a5f..63c17dae740 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -454,15 +454,15 @@ void close_temporary_tables(THD *thd) next=table->next; close_temporary(table); } - if(query && mysql_bin_log.is_open()) - { - uint save_query_len = thd->query_length; - *--p = 0; - thd->query_length = (uint)(p-query); - Query_log_event qinfo(thd, query); - mysql_bin_log.write(&qinfo); - thd->query_length = save_query_len; - } + if (query && mysql_bin_log.is_open()) + { + uint save_query_len = thd->query_length; + *--p = 0; + thd->query_length = (uint)(p-query); + Query_log_event qinfo(thd, query); + mysql_bin_log.write(&qinfo); + thd->query_length = save_query_len; + } thd->temporary_tables=0; } |