summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-08-02 14:51:03 +0500
committerramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-08-02 14:51:03 +0500
commitdc84a5fd5220459e41cf7cfaf53b9691aeabfbcf (patch)
tree3871ef561058494ec8493d4094a9713a3d69317b /sql/sql_parse.cc
parentd66b4bd4beb0c7d47e1b915f09439cd703f0fda0 (diff)
downloadmariadb-git-dc84a5fd5220459e41cf7cfaf53b9691aeabfbcf.tar.gz
Fix for bug #30200: mysqlbinlog.test: connection_id() not restored under ps-protocol
Problem: thd->thread_specific_used flag is not set executing a statement containig connection_id() function using PS protocol, that leads to improper binlog event creation. Fix: set the flag in the Item_func_connection_id::fix_fields().
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 7d723d3cd5b..25ead88ac53 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -5847,6 +5847,7 @@ void mysql_reset_thd_for_next_command(THD *thd)
SERVER_QUERY_NO_GOOD_INDEX_USED);
DBUG_ASSERT(thd->security_ctx== &thd->main_security_ctx);
thd->tmp_table_used= 0;
+ thd->thread_specific_used= FALSE;
if (!thd->in_sub_stmt)
{
if (opt_bin_log)