mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-22805 SIGSEGV in check_fields on UPDATE
Additional case for PS protocol: UPDATE is converted to multi-update in mysql_multi_update_prepare().
This commit is contained in:
@ -190,6 +190,13 @@ static bool check_fields(THD *thd, TABLE_LIST *table, List<Item> &items,
|
||||
my_error(ER_IT_IS_A_VIEW, MYF(0), table->table_name.str);
|
||||
return TRUE;
|
||||
}
|
||||
if (thd->lex->sql_command == SQLCOM_UPDATE_MULTI)
|
||||
{
|
||||
my_error(ER_NOT_SUPPORTED_YET, MYF(0),
|
||||
"updating and querying the same temporal periods table");
|
||||
|
||||
return true;
|
||||
}
|
||||
DBUG_ASSERT(thd->lex->sql_command == SQLCOM_UPDATE);
|
||||
for (List_iterator_fast<Item> it(items); (item=it++);)
|
||||
{
|
||||
|
Reference in New Issue
Block a user