mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
These are actually two changesets. One for splitting LEX in two and
the other for multi-table delete
This commit is contained in:
@@ -128,7 +128,7 @@ int mysql_update(THD *thd,
|
||||
/* If running in safe sql mode, don't allow updates without keys */
|
||||
if (!table->quick_keys)
|
||||
{
|
||||
thd->lex.options|=QUERY_NO_INDEX_USED;
|
||||
thd->lex.select_lex.options|=QUERY_NO_INDEX_USED;
|
||||
if ((thd->options & OPTION_SAFE_UPDATES) && limit == HA_POS_ERROR)
|
||||
{
|
||||
delete select;
|
||||
|
Reference in New Issue
Block a user