diff options
author | unknown <hf@deer.(none)> | 2003-10-06 17:06:05 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-10-06 17:06:05 +0500 |
commit | f9c8552107ad915623678b901bff6f5fd0075807 (patch) | |
tree | 622d2b372f7c4aacd4f0fc6d1afb1626b34ca370 /libmysqld | |
parent | 24bf52c079d46e6032982b1647782af8992aac24 (diff) | |
download | mariadb-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.cc | 3 |
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; } |