summaryrefslogtreecommitdiff
path: root/sql/sql_update.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2015-11-03 09:31:20 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2015-11-05 17:50:59 +0100
commit5041de97e15e4af05003a8c6c14bfff106da570b (patch)
tree4937735c3ae99e1df7732ffa9f12c94d18f2910e /sql/sql_update.h
parentd9119710c44d0cd785447080c43bf3c2ba2e4cac (diff)
downloadmariadb-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.h1
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,