fix non-variadic repeated param in variadic function

This commit is contained in:
Wolfgang Walther
2020-10-30 10:06:53 -05:00
committed by Steve Chavez
parent 8618ffa5fc
commit 4b4a622a17
3 changed files with 14 additions and 3 deletions
+7 -2
View File
@@ -1084,9 +1084,14 @@ create function test.many_inout_params(INOUT num int, INOUT str text, INOUT b bo
$$ language sql;
CREATE FUNCTION test.variadic_param(VARIADIC v TEXT[] DEFAULT '{}') RETURNS text[]
LANGUAGE SQL AS $_$
LANGUAGE SQL AS $$
SELECT v
$_$;
$$;
CREATE FUNCTION test.sayhello_variadic(name TEXT, VARIADIC v TEXT[]) RETURNS text
LANGUAGE SQL AS $$
SELECT 'Hello, ' || name
$$;
create or replace function test.raise_pt402() returns void as $$
begin