summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2010-04-27 13:38:04 +0400
committerAlexander Nozdrin <alik@sun.com>2010-04-27 13:38:04 +0400
commit0c8c4a7133f955603029b3bc31e45b5ef02516ca (patch)
tree6280b0916bccce2a6ea497a09685c1c67808f2f5 /sql/sql_class.h
parent2283e1b510998ea904f118b0da50986ec4047de2 (diff)
parent4f4ed5d9e10261df8343a37ee4b8eab3c69252bd (diff)
downloadmariadb-git-0c8c4a7133f955603029b3bc31e45b5ef02516ca.tar.gz
Auto-merge from mysql-trunk-bugfixing.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 950db01d1cd..0a098fc8492 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -2108,6 +2108,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 */
@@ -2531,11 +2536,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;