mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-19956 Queries with subqueries containing UNION are not parsed
Shift-Reduce conflicts prevented parsing some queries with subqueries that used set operations when the subqueries occurred in expressions or in IN predicands. The grammar rules for query expression were transformed in order to avoid these conflicts. New grammar rules employ an idea taken from MySQL 8.0.
This commit is contained in:
@ -11261,7 +11261,7 @@ bool Sql_cmd_create_table_like::execute(THD *thd)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (select_lex->item_list.elements) // With select
|
||||
if (select_lex->item_list.elements || select_lex->tvc) // With select or TVC
|
||||
{
|
||||
select_result *result;
|
||||
|
||||
|
Reference in New Issue
Block a user