summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorLuis Soares <luis.soares@oracle.com>2011-09-20 11:48:52 +0100
committerLuis Soares <luis.soares@oracle.com>2011-09-20 11:48:52 +0100
commit7841a553ccefa7f1299b902c59ab505172d49957 (patch)
treefffff4a1cc33be4b4c9b36ffd9760f314b82d6d9 /sql/sql_lex.cc
parentdbcdad7d4a726a28aa0a210a674ec26d1ac5c98e (diff)
downloadmariadb-git-7841a553ccefa7f1299b902c59ab505172d49957.tar.gz
BUG#13001711: UNINITIALIZED VALUE IN MASTER_INFO::CLEAR_IN_MEMORY_INFO
WITH MYSQL_REFRESH() reset_slave_info.all was not initialized. We fix this by setting lex->reset_slave_info.all= false in the lex_start routine, which is called before every statement.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 1cc967c5055..9b2bdf5b5cc 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -435,6 +435,7 @@ void lex_start(THD *thd)
lex->is_lex_started= TRUE;
lex->used_tables= 0;
+ lex->reset_slave_info.all= false;
DBUG_VOID_RETURN;
}