1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Don't clear warnings for functions or triggers

Fixed failing test


mysql-test/t/rpl_trigger.test:
  Added missing option that caused the test to fail sometimes
sql/sql_parse.cc:
  Don't clear warnings for functions or triggers
This commit is contained in:
unknown
2005-08-15 20:08:58 +03:00
parent c5aac211d0
commit 51919db078
2 changed files with 4 additions and 3 deletions

View File

@@ -5208,11 +5208,11 @@ void mysql_reset_thd_for_next_command(THD *thd)
SERVER_QUERY_NO_INDEX_USED |
SERVER_QUERY_NO_GOOD_INDEX_USED);
thd->tmp_table_used= 0;
if (opt_bin_log)
reset_dynamic(&thd->user_var_events);
thd->clear_error();
if (!thd->in_sub_stmt)
{
if (opt_bin_log)
reset_dynamic(&thd->user_var_events);
thd->clear_error();
thd->total_warn_count=0; // Warnings for this query
thd->rand_used= 0;
thd->sent_row_count= thd->examined_row_count= 0;