diff options
author | ramil/ram@mysql.com/ramil.myoffice.izhnet.ru <> | 2007-08-02 14:51:03 +0500 |
---|---|---|
committer | ramil/ram@mysql.com/ramil.myoffice.izhnet.ru <> | 2007-08-02 14:51:03 +0500 |
commit | dc84a5fd5220459e41cf7cfaf53b9691aeabfbcf (patch) | |
tree | 3871ef561058494ec8493d4094a9713a3d69317b /sql/item_create.cc | |
parent | d66b4bd4beb0c7d47e1b915f09439cd703f0fda0 (diff) | |
download | mariadb-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/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index 3713fc9e380..561613032bc 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -72,7 +72,6 @@ Item *create_func_connection_id(void) { THD *thd= current_thd; thd->lex->safe_to_cache_query= 0; - thd->thread_specific_used= TRUE; return new Item_func_connection_id(); } |