MDEV-7921: main.sp_sync fails in buildbot with valgrind

Part 1: first 2 cases of valgrind complain. context_analysis_only can be used on non-started LEX (opening tables)

obviouse fixes in DBUG and is_lex_started assignment.
This commit is contained in:
Oleksandr Byelkin 2015-05-18 17:34:50 +02:00
commit c1fb91ef73
2 changed files with 4 additions and 3 deletions

View file

@ -2667,7 +2667,7 @@ void var_query_set(VAR *var, const char *query, const char** query_end)
report_or_die("Query '%s' didn't return a result set", ds_query.str);
dynstr_free(&ds_query);
eval_expr(var, "", 0);
return;
DBUG_VOID_RETURN;
}
dynstr_free(&ds_query);