fix: Return array of objects for RPCs with single-column TABLE return type

This is a regression after changing responses for RPCs with INOUT or OUT arguments in #1615.

Resolves #1930.
This commit is contained in:
Wolfgang Walther
2021-09-02 10:13:03 -05:00
committed by Steve Chavez
parent d4c6abbaec
commit b05898d17f
4 changed files with 23 additions and 4 deletions
+8
View File
@@ -1203,6 +1203,14 @@ create function test.many_inout_params(INOUT num int, INOUT str text, INOUT b bo
select num, str, b;
$$ language sql;
create function test.single_column_table_return () returns table (a text) AS $$
select 'A'::text;
$$ language sql;
create function test.multi_column_table_return () returns table (a text, b text) AS $$
select 'A'::text, 'B'::text;
$$ language sql;
CREATE FUNCTION test.variadic_param(VARIADIC v TEXT[] DEFAULT '{}') RETURNS text[]
IMMUTABLE
LANGUAGE SQL AS $$