From 67b31a6e4c8cffcb0660740979e03ee3f81a464c Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Mon, 12 Apr 2021 23:07:00 +0400 Subject: [PATCH] MDEV-17399 JSON_TABLE. test crashing after any_db assinged nonzero lenght fixed. --- sql/sql_parse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index cb8161817fb..a63b5432936 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -132,7 +132,7 @@ static int show_create_db(THD *thd, LEX *lex); static bool alter_routine(THD *thd, LEX *lex); static bool drop_routine(THD *thd, LEX *lex); -const LEX_CSTRING any_db= {"*any*", 0}; +const LEX_CSTRING any_db= {STRING_WITH_LEN("*any*")}; const LEX_CSTRING command_name[257]={ { STRING_WITH_LEN("Sleep") }, //0