aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/action/pass_action_as_param.sql
blob: e5ab80b2645e625399d6b4e488e9e5482159c5bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* syntax version 1 */
/* postgres can not */
define action $dup($x) as
   do $x();
   do $x();
end define;

do $dup(empty_action);

define action $sel_foo() as
   select "foo";
end define;

do $dup($sel_foo);