@@ -117,15 +117,15 @@ CREATE FUNCTION sc1.f1(a sc1.enum1)
117117 LANGUAGE plpgsql
118118 SECURITY INVOKER
119119 AS $$
120- DECLARE
121- x INT8 := 0;
122- foobar sc1.enum1;
123- BEGIN
124- SELECT a FROM sc1.tbl1;
125- SELECT 'Good':::sc1.enum1;
126- RETURN nextval('sc1.sq1'::REGCLASS);
127- END;
128- $$
120+ DECLARE
121+ x INT8 := 0;
122+ foobar sc1.enum1;
123+ BEGIN
124+ SELECT a FROM sc1.tbl1;
125+ SELECT 'Good':::sc1.enum1;
126+ RETURN nextval('sc1.sq1'::REGCLASS);
127+ END;
128+ $$
129129
130130query-sql
131131SELECT sc1.f1('Good'::sc1.enum1)
@@ -143,15 +143,15 @@ CREATE FUNCTION sc2.f2()
143143 LANGUAGE plpgsql
144144 SECURITY INVOKER
145145 AS $$
146- DECLARE
147- x INT8;
148- BEGIN
149- SELECT a FROM sc2.tbl2 LIMIT 1 INTO x;
150- SELECT sc1.f1('Good':::sc1.enum1);
151- CALL public.p_nested('Good':::sc1.enum1);
152- RETURN x;
153- END;
154- $$
146+ DECLARE
147+ x INT8;
148+ BEGIN
149+ SELECT a FROM sc2.tbl2 LIMIT 1 INTO x;
150+ SELECT sc1.f1('Good':::sc1.enum1);
151+ CALL public.p_nested('Good':::sc1.enum1);
152+ RETURN x;
153+ END;
154+ $$
155155
156156exec-sql
157157DROP DATABASE db1
@@ -180,15 +180,15 @@ CREATE FUNCTION sc1.f1(a sc1.enum1)
180180 LANGUAGE plpgsql
181181 SECURITY INVOKER
182182 AS $$
183- DECLARE
184- x INT8 := 0;
185- foobar sc1.enum1;
186- BEGIN
187- SELECT a FROM sc1.tbl1;
188- SELECT 'Good':::sc1.enum1;
189- RETURN nextval('sc1.sq1'::REGCLASS);
190- END;
191- $$
183+ DECLARE
184+ x INT8 := 0;
185+ foobar sc1.enum1;
186+ BEGIN
187+ SELECT a FROM sc1.tbl1;
188+ SELECT 'Good':::sc1.enum1;
189+ RETURN nextval('sc1.sq1'::REGCLASS);
190+ END;
191+ $$
192192
193193query-sql
194194SELECT create_statement FROM [SHOW CREATE FUNCTION sc2.f2]
@@ -201,15 +201,15 @@ CREATE FUNCTION sc2.f2()
201201 LANGUAGE plpgsql
202202 SECURITY INVOKER
203203 AS $$
204- DECLARE
205- x INT8;
206- BEGIN
207- SELECT a FROM sc2.tbl2 LIMIT 1 INTO x;
208- SELECT sc1.f1('Good':::sc1.enum1);
209- CALL public.p_nested('Good':::sc1.enum1);
210- RETURN x;
211- END;
212- $$
204+ DECLARE
205+ x INT8;
206+ BEGIN
207+ SELECT a FROM sc2.tbl2 LIMIT 1 INTO x;
208+ SELECT sc1.f1('Good':::sc1.enum1);
209+ CALL public.p_nested('Good':::sc1.enum1);
210+ RETURN x;
211+ END;
212+ $$
213213
214214# Make sure function signature is rewritten in schema descriptor so that
215215# function can be resolved and executed.
@@ -372,16 +372,16 @@ CREATE FUNCTION sc1.f1(a sc1.enum1)
372372 LANGUAGE plpgsql
373373 SECURITY INVOKER
374374 AS $$
375- DECLARE
376- x INT8;
377- foobar sc1.enum1;
378- BEGIN
379- SELECT a FROM sc1.tbl1;
380- SELECT 'Good':::sc1.enum1;
381- SELECT nextval('sc1.sq1'::REGCLASS) INTO x;
382- RETURN x;
383- END;
384- $$
375+ DECLARE
376+ x INT8;
377+ foobar sc1.enum1;
378+ BEGIN
379+ SELECT a FROM sc1.tbl1;
380+ SELECT 'Good':::sc1.enum1;
381+ SELECT nextval('sc1.sq1'::REGCLASS) INTO x;
382+ RETURN x;
383+ END;
384+ $$
385385
386386query-sql
387387SELECT sc1.f1('Good'::sc1.enum1)
@@ -416,16 +416,16 @@ CREATE FUNCTION sc1.f1(a sc1.enum1)
416416 LANGUAGE plpgsql
417417 SECURITY INVOKER
418418 AS $$
419- DECLARE
420- x INT8;
421- foobar sc1.enum1;
422- BEGIN
423- SELECT a FROM sc1.tbl1;
424- SELECT 'Good':::sc1.enum1;
425- SELECT nextval('sc1.sq1'::REGCLASS) INTO x;
426- RETURN x;
427- END;
428- $$
419+ DECLARE
420+ x INT8;
421+ foobar sc1.enum1;
422+ BEGIN
423+ SELECT a FROM sc1.tbl1;
424+ SELECT 'Good':::sc1.enum1;
425+ SELECT nextval('sc1.sq1'::REGCLASS) INTO x;
426+ RETURN x;
427+ END;
428+ $$
429429
430430# Make sure function signature is rewritten in schema descriptor so that
431431# function can be resolved and executed.
0 commit comments