diff options
author | unknown <hf@deer.(none)> | 2004-02-12 16:47:57 +0400 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2004-02-12 16:47:57 +0400 |
commit | eea7cbfba5f8c0c4721b31f0642f8824c995baac (patch) | |
tree | 2afb7da6f4392297e6a85fd5ffacd43b8ac91248 /libmysqld | |
parent | f2753fe9ac04edac1e8b968d29e77178b4e8c0a5 (diff) | |
download | mariadb-git-eea7cbfba5f8c0c4721b31f0642f8824c995baac.tar.gz |
Fix for #1438 (mysql_info always returns 0)
libmysqld/lib_sql.cc:
mysql.info set to the right value
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 81235ce0c22..101e129d615 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -689,7 +689,10 @@ send_ok(THD *thd,ha_rows affected_rows,ulonglong id,const char *message) mysql->affected_rows= affected_rows; mysql->insert_id= id; if (message) + { strmake(thd->net.last_error, message, sizeof(thd->net.last_error)-1); + mysql->info= thd->net.last_error; + } DBUG_VOID_RETURN; } |