diff options
author | Alexander Nozdrin <alik@sun.com> | 2010-04-27 13:58:21 +0400 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2010-04-27 13:58:21 +0400 |
commit | d328d5be33cddff7dfcc736ecc993f11560f8152 (patch) | |
tree | 6fc830df498046ca29b2381fb809726faeb04f52 /sql/sql_class.h | |
parent | 5575d724cf1e40c467ab0eab934ce8846b452a9a (diff) | |
parent | 0c8c4a7133f955603029b3bc31e45b5ef02516ca (diff) | |
download | mariadb-git-d328d5be33cddff7dfcc736ecc993f11560f8152.tar.gz |
Manual merge from mysql-trunk.
Conflicts:
- mysql-test/suite/rpl/r/rpl_stm_mixing_engines.result
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 0c9ad749132..7a77f9172b7 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -2109,6 +2109,11 @@ public: /** is set if some thread specific value(s) used in a statement. */ bool thread_specific_used; + /** + is set if a statement accesses a temporary table created through + CREATE TEMPORARY TABLE. + */ + bool thread_temporary_used; bool charset_is_system_charset, charset_is_collation_connection; bool charset_is_character_set_filesystem; bool enable_slow_log; /* enable slow log for current statement */ @@ -2532,11 +2537,11 @@ public: ("temporary_tables: %s, in_sub_stmt: %s, system_thread: %s", YESNO(temporary_tables), YESNO(in_sub_stmt), show_system_thread(system_thread))); - if ((temporary_tables == NULL) && (in_sub_stmt == 0)) + if (in_sub_stmt == 0) { if (variables.binlog_format == BINLOG_FORMAT_ROW) set_current_stmt_binlog_format_row(); - else + else if (temporary_tables == NULL) clear_current_stmt_binlog_format_row(); } DBUG_VOID_RETURN; |