diff options
author | Igor Babaev <igor@askmonty.org> | 2019-05-08 00:08:09 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2019-05-08 09:45:24 -0700 |
commit | 09aa5d3f6988e92f869adfd13a925bfead6f040d (patch) | |
tree | 6e487e5d025573d3d638be0d07b52cb6210609f0 /sql/item_subselect.h | |
parent | 9d805004d8e7913a98d25142d22627a4a6e39063 (diff) | |
download | mariadb-git-09aa5d3f6988e92f869adfd13a925bfead6f040d.tar.gz |
MDEV-17894 Assertion `(thd->lex)->current_select' failed in MYSQLparse(),
query with VALUES()
A table value constructor can be used in all contexts where a select
can be used. In particular an ORDER BY clause or a LIMIT clause or both
of them can be attached to a table value constructor to produce a new
query. Unfortunately execution of such queries was not supported.
This patch fixes the problem.
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r-- | sql/item_subselect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h index e0b09b9484b..a4bce34b315 100644 --- a/sql/item_subselect.h +++ b/sql/item_subselect.h @@ -267,7 +267,7 @@ public: Item* build_clone(THD *thd) { return 0; } Item* get_copy(THD *thd) { return 0; } - bool wrap_tvc_in_derived_table(THD *thd, st_select_lex *tvc_sl); + bool wrap_tvc_into_select(THD *thd, st_select_lex *tvc_sl); friend class select_result_interceptor; friend class Item_in_optimizer; |