1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Show all generated warnings in SHOW ERROR

Previously we only stored the first given error (the error sent to the client)
This commit is contained in:
monty@mysql.com
2005-02-24 23:33:42 +02:00
parent d5f573713a
commit cd78e701a5
24 changed files with 115 additions and 57 deletions

View File

@ -2252,6 +2252,7 @@ mysql_execute_command(THD *thd)
lex->sql_command != SQLCOM_LOCK_TABLES &&
lex->sql_command != SQLCOM_UNLOCK_TABLES)
{
thd->no_warnings_for_error= 1;
while (1)
{
if (sp_cache_routines(thd, lex, TYPE_ENUM_FUNCTION))
@ -2331,6 +2332,7 @@ mysql_execute_command(THD *thd)
}
break;
} // while (1)
thd->no_warnings_for_error= 0;
}
/*