From 6b0112549e012d91d976c09b5aca0d46a0bd5dde Mon Sep 17 00:00:00 2001 From: "hf@deer.(none)" <> Date: Mon, 6 Oct 2003 17:06:05 +0500 Subject: [PATCH] Fix for #1488 --- libmysqld/lib_sql.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 2829074ce53..019fe42e284 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -95,7 +95,10 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command, memcpy(net->sqlstate, thd->net.sqlstate, sizeof(net->sqlstate)); } else + { net->last_error[0]= 0; + strmov(net->sqlstate, not_error_sqlstate); + } mysql->warning_count= ((THD*)mysql->thd)->total_warn_count; return result; }