diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2015-11-03 09:31:20 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2015-11-05 17:50:59 +0100 |
commit | 5041de97e15e4af05003a8c6c14bfff106da570b (patch) | |
tree | 4937735c3ae99e1df7732ffa9f12c94d18f2910e /sql/sql_update.h | |
parent | d9119710c44d0cd785447080c43bf3c2ba2e4cac (diff) | |
download | mariadb-git-5041de97e15e4af05003a8c6c14bfff106da570b.tar.gz |
MDEV-8701 Crash on derived query
Make unique table check after setup_fields of update because unique table can materialize table and we do not need field resolving after materialization.
Diffstat (limited to 'sql/sql_update.h')
-rw-r--r-- | sql/sql_update.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_update.h b/sql/sql_update.h index 64029c5d634..4c6f89d8468 100644 --- a/sql/sql_update.h +++ b/sql/sql_update.h @@ -27,6 +27,7 @@ typedef class st_select_lex_unit SELECT_LEX_UNIT; bool mysql_prepare_update(THD *thd, TABLE_LIST *table_list, Item **conds, uint order_num, ORDER *order); +bool check_unique_table(THD *thd, TABLE_LIST *table_list); int mysql_update(THD *thd,TABLE_LIST *tables,List<Item> &fields, List<Item> &values,COND *conds, uint order_num, ORDER *order, ha_rows limit, |