1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fix for #1438 (mysql_info always returns 0)

libmysqld/lib_sql.cc:
  mysql.info set to the right value
This commit is contained in:
unknown
2004-02-12 16:47:57 +04:00
parent f2753fe9ac
commit eea7cbfba5

View File

@ -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;
}