maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #00911
bzr commit into MariaDB 5.1, with Maria 1.5:maria branch (knielsen:2730)
#At lp:maria
2730 knielsen@xxxxxxxxxxxxxxx 2009-09-07
Fix that thd->query_plan_flags was not initialised prior to executing non-query commands
(also fixes a Valgrind warning in Buildbot).
modified:
sql/sql_parse.cc
=== modified file 'sql/sql_parse.cc'
--- a/sql/sql_parse.cc 2009-09-03 14:05:38 +0000
+++ b/sql/sql_parse.cc 2009-09-07 13:13:58 +0000
@@ -975,6 +975,7 @@ bool dispatch_command(enum enum_server_c
the slow log only if opt_log_slow_admin_statements is set.
*/
thd->enable_slow_log= TRUE;
+ thd->query_plan_flags= QPLAN_INIT;
thd->lex->sql_command= SQLCOM_END; /* to avoid confusing VIEW detectors */
thd->set_time();
VOID(pthread_mutex_lock(&LOCK_thread_count));