Commit f98bf0a0 authored by monty@tik.mysql.fi's avatar monty@tik.mysql.fi

Fixed bug in @@unknown_variable

parent baa297b7
...@@ -2167,6 +2167,6 @@ Item *get_system_var(LEX_STRING name) ...@@ -2167,6 +2167,6 @@ Item *get_system_var(LEX_STRING name)
if (!my_strcasecmp(name.str,"VERSION")) if (!my_strcasecmp(name.str,"VERSION"))
return new Item_string("@@VERSION",server_version, return new Item_string("@@VERSION",server_version,
(uint) strlen(server_version)); (uint) strlen(server_version));
net_printf(&current_thd->net, ER_UNKNOWN_SYSTEM_VARIABLE, name); net_printf(&current_thd->net, ER_UNKNOWN_SYSTEM_VARIABLE, name.str);
return 0; return 0;
} }
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