blob: ae6d563701a999b7dc28bb91e0eb5a0e44f4b42e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* syntax version 1 */
/* postgres can not */
define subquery $sub1() as
select 1 as x;
end define;
define subquery $sub2() as
select 2 as x;
end define;
define subquery $sub3() as
select 3 as y;
end define;
$s = SubqueryExtend($sub1,$sub2);
process $s();
$s = SubqueryUnionAll($sub1,$sub3);
process $s();
$s = SubqueryMerge($sub1,$sub2);
process $s();
$s = SubqueryUnionMerge($sub1,$sub3);
process $s();
|