From 404878b8730700ffcf55331b4b8e8ba5421d7f9c Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 19 Mar 2003 17:46:36 +0200 Subject: [PATCH] Fixed a bug when SELECT @@inexistent_variable caused the error in client - server protocl due to two net_printf() being sent to the client. --- sql/item_func.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/sql/item_func.cc b/sql/item_func.cc index b6a64155ab5..15018085146 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -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;