mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
manual merge from mysql-5.1-bugteam
This commit is contained in:
@@ -59,6 +59,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
|
||||
bool const_cond_result;
|
||||
ha_rows deleted= 0;
|
||||
bool reverse= FALSE;
|
||||
bool skip_record;
|
||||
ORDER *order= (ORDER *) ((order_list && order_list->elements) ?
|
||||
order_list->first : NULL);
|
||||
uint usable_index= MAX_KEY;
|
||||
@@ -298,7 +299,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
|
||||
{
|
||||
thd->examined_row_count++;
|
||||
// thd->is_error() is tested to disallow delete row on error
|
||||
if (!(select && select->skip_record())&& ! thd->is_error() )
|
||||
if (!select || (!select->skip_record(thd, &skip_record) && !skip_record))
|
||||
{
|
||||
|
||||
if (table->triggers &&
|
||||
|
Reference in New Issue
Block a user