mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 19:55:32 +02:00
Merge fix for BUG#35478 into 5.1
This commit is contained in:
commit
7a92412c59
15 changed files with 105 additions and 40 deletions
|
|
@ -245,7 +245,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
|
|||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
if (usable_index==MAX_KEY)
|
||||
init_read_record(&info,thd,table,select,1,1);
|
||||
init_read_record(&info, thd, table, select, 1, 1, FALSE);
|
||||
else
|
||||
init_read_record_idx(&info, thd, table, 1, usable_index);
|
||||
|
||||
|
|
@ -834,7 +834,7 @@ int multi_delete::do_deletes()
|
|||
}
|
||||
|
||||
READ_RECORD info;
|
||||
init_read_record(&info,thd,table,NULL,0,1);
|
||||
init_read_record(&info, thd, table, NULL, 0, 1, FALSE);
|
||||
/*
|
||||
Ignore any rows not found in reference tables as they may already have
|
||||
been deleted by foreign key handling
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue