mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +01:00
Use UNION ALL instead of UNION
This commit is contained in:
parent
b2a54e4216
commit
03e856b6f7
@ -3208,7 +3208,8 @@ with_list : with_item
|
||||
// ASF: Create derived table with nested union to fix CORE-1246
|
||||
with_item : symbol_table_alias_name derived_column_list AS '(' select_expr ')'
|
||||
{ $$ = make_node (nod_derived_table, (int) e_derived_table_count,
|
||||
make_node (nod_select_expr, (int) e_sel_count, make_node(nod_list, 1, $5), NULL, NULL, NULL),
|
||||
make_node (nod_select_expr, (int) e_sel_count,
|
||||
make_flag_node(nod_list, NOD_UNION_ALL, 1, $5), NULL, NULL, NULL),
|
||||
$1, $2, NULL); }
|
||||
;
|
||||
|
||||
@ -3322,7 +3323,8 @@ table_primary : table_proc
|
||||
derived_table :
|
||||
'(' select_expr ')' as_noise correlation_name derived_column_list
|
||||
{ $$ = make_node(nod_derived_table, (int) e_derived_table_count,
|
||||
make_node (nod_select_expr, (int) e_sel_count, make_node(nod_list, 1, $2), NULL, NULL, NULL),
|
||||
make_node (nod_select_expr, (int) e_sel_count,
|
||||
make_flag_node(nod_list, NOD_UNION_ALL, 1, $2), NULL, NULL, NULL),
|
||||
$5, $6, NULL); }
|
||||
;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user