Commit eef24deb authored by Aleksey Midenkov's avatar Aleksey Midenkov

mysqltest intelligible error message about empty variable name

parent 44823ee4
...@@ -2496,7 +2496,7 @@ VAR* var_get(const char *var_name, const char **var_name_end, my_bool raw, ...@@ -2496,7 +2496,7 @@ VAR* var_get(const char *var_name, const char **var_name_end, my_bool raw,
{ {
if (ignore_not_existing) if (ignore_not_existing)
DBUG_RETURN(0); DBUG_RETURN(0);
die("Empty variable"); die("Empty variable name in context: \"%.50s\"", var_name - 1);
} }
length= (uint) (var_name - save_var_name); length= (uint) (var_name - save_var_name);
if (length >= MAX_VAR_NAME_LENGTH) if (length >= MAX_VAR_NAME_LENGTH)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment