mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-9619: Assertion `null_ref_table' failed in virtual table_map Item_direct_view_ref::used_tables() const on 2nd execution of PS
Refer left expression indirectly in case it changes from execution to execution.
This commit is contained in:
@ -361,7 +361,7 @@ int mysql_update(THD *thd,
|
||||
table_list->grant.want_privilege= table->grant.want_privilege=
|
||||
(SELECT_ACL & ~table->grant.privilege);
|
||||
#endif
|
||||
if (setup_fields(thd, 0, values, MARK_COLUMNS_READ, 0, 0))
|
||||
if (setup_fields(thd, 0, values, MARK_COLUMNS_READ, 0, NULL, 0))
|
||||
{
|
||||
free_underlaid_joins(thd, select_lex);
|
||||
DBUG_RETURN(1); /* purecov: inspected */
|
||||
@ -1521,7 +1521,7 @@ int multi_update::prepare(List<Item> ¬_used_values,
|
||||
reference tables
|
||||
*/
|
||||
|
||||
int error= setup_fields(thd, 0, *values, MARK_COLUMNS_READ, 0, 0);
|
||||
int error= setup_fields(thd, 0, *values, MARK_COLUMNS_READ, 0, NULL, 0);
|
||||
|
||||
ti.rewind();
|
||||
while ((table_ref= ti++))
|
||||
|
Reference in New Issue
Block a user