summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-10-06 17:06:05 +0500
committerunknown <hf@deer.(none)>2003-10-06 17:06:05 +0500
commitf9c8552107ad915623678b901bff6f5fd0075807 (patch)
tree622d2b372f7c4aacd4f0fc6d1afb1626b34ca370 /libmysqld
parent24bf52c079d46e6032982b1647782af8992aac24 (diff)
downloadmariadb-git-f9c8552107ad915623678b901bff6f5fd0075807.tar.gz
Fix for #1488
libmysqld/lib_sql.cc: net->sqlstate should be initialized here
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc3
1 files changed, 3 insertions, 0 deletions
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;
}