mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fixed a bug when SELECT @@inexistent_variable caused the
error in client - server protocl due to two net_printf() being sent to the client.
This commit is contained in:
@ -2382,10 +2382,7 @@ Item *get_system_var(enum_var_type var_type, LEX_STRING name)
|
||||
char buff[MAX_SYS_VAR_LENGTH+3+8], *pos;
|
||||
|
||||
if (!(var= find_sys_var(name.str)))
|
||||
{
|
||||
net_printf(&thd->net, ER_UNKNOWN_SYSTEM_VARIABLE, name.str);
|
||||
return 0;
|
||||
}
|
||||
if (!(item=var->item(thd, var_type)))
|
||||
return 0; // Impossible
|
||||
thd->safe_to_cache_query=0;
|
||||
|
Reference in New Issue
Block a user