diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2017-02-18 17:47:31 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2017-10-13 19:32:38 +0200 |
commit | 235b68299bc112f9cb7be97af8d01bf904919a6b (patch) | |
tree | d108e57b12187165b353220c85e088c68df2b005 /sql/sql_do.cc | |
parent | 2bab29ebba7a641d43a98737fd1c160971357cd4 (diff) | |
download | mariadb-git-235b68299bc112f9cb7be97af8d01bf904919a6b.tar.gz |
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.
Diffstat (limited to 'sql/sql_do.cc')
-rw-r--r-- | sql/sql_do.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_do.cc b/sql/sql_do.cc index 4ba887b5ab2..46bdb421b3a 100644 --- a/sql/sql_do.cc +++ b/sql/sql_do.cc @@ -28,7 +28,7 @@ bool mysql_do(THD *thd, List<Item> &values) List_iterator<Item> li(values); Item *value; DBUG_ENTER("mysql_do"); - if (setup_fields(thd, 0, values, MARK_COLUMNS_NONE, 0, 0)) + if (setup_fields(thd, 0, values, MARK_COLUMNS_NONE, 0, NULL, 0)) DBUG_RETURN(TRUE); while ((value = li++)) value->val_int(); |