mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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.
This commit is contained in:
@ -800,6 +800,12 @@ public:
|
||||
table for it
|
||||
*/
|
||||
Item_int *intersect_mark;
|
||||
/**
|
||||
TRUE if the unit contained TVC at the top level that has been wrapped
|
||||
into SELECT:
|
||||
VALUES (v1) ... (vn) => SELECT * FROM (VALUES (v1) ... (vn)) as tvc
|
||||
*/
|
||||
bool with_wrapped_tvc;
|
||||
/**
|
||||
Pointer to 'last' select, or pointer to select where we stored
|
||||
global parameters for union.
|
||||
|
Reference in New Issue
Block a user