create domain posint as int4 check (value > 0);
create type struct as (id int4, data text);
create function test_types2(username text, inout v_posint posint, inout v_struct struct, inout arr int8[])
-as $$ cluster 'testcluster'; run on 0; $$ language plproxy;
+as $$ cluster 'testcluster'; $$ language plproxy;
\c test_part
create domain posint as int4 check (value > 0);
create type struct as (id int4, data text);
create type struct as (id int4, data text);
create function test_types2(username text, inout v_posint posint, inout v_struct struct, inout arr int8[])
-as $$ cluster 'testcluster'; run on 0; $$ language plproxy;
+as $$ cluster 'testcluster'; $$ language plproxy;
\c test_part
create domain posint as int4 check (value > 0);
got_run = got_cluster = got_connect = 0;
cur_sql = select_sql = cluster_sql = hash_sql = NULL;
+ /* By default expect RUN ON 0; */
+ xfunc->run_type = R_EXACT;
+ xfunc->exact_nr = 0;
+
/* setup scanner */
plproxy_yy_scan_bytes(body, len);
} else {
if (!got_cluster)
yyerror("CLUSTER statement missing");
- if (!got_run)
- yyerror("RUN statement missing");
}
/* reinitialize scanner */