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

Fixed bug#19225: unchecked error results in server crash

In multi-table delete a table for delete can't be used for selecting in
subselects. Appropriate error was raised but wasn't checked which leads to a
crash at the execution phase.

The mysql_execute_command() now checks for errors before executing select
for multi-delete.


mysql-test/t/multi_update.test:
  Added test case for bug#19225: unchecked error results in server crash
mysql-test/r/multi_update.result:
  Added test case for bug#19225: unchecked error results in server crash
sql/sql_parse.cc:
  Fixed bug#19225: unchecked error results in server crash
  The mysql_execute_command() now checks for errors before executing select for multi-delete.
This commit is contained in:
unknown
2006-05-29 00:32:59 +04:00
parent 81f1acc4bc
commit 2264b64473
3 changed files with 15 additions and 2 deletions

View File

@@ -3047,8 +3047,8 @@ unsent_create_error:
}
}
if (!thd->is_fatal_error && (result= new multi_delete(thd,aux_tables,
table_count)))
if (!res && !thd->is_fatal_error &&
(result= new multi_delete(thd,aux_tables, table_count)))
{
res= mysql_select(thd, &select_lex->ref_pointer_array,
select_lex->get_table_list(),