|
|
|
@ -1180,7 +1180,7 @@ drop function anyarray_anyrange_func(anyarray, anyrange); |
|
|
|
|
create function bogus_func(anyelement) |
|
|
|
|
returns anyrange as 'select int4range(1,10)' language sql; |
|
|
|
|
ERROR: cannot determine result data type |
|
|
|
|
DETAIL: A function returning ANYRANGE must have at least one ANYRANGE argument. |
|
|
|
|
DETAIL: A function returning "anyrange" must have at least one "anyrange" argument. |
|
|
|
|
-- should fail |
|
|
|
|
create function bogus_func(int) |
|
|
|
|
returns anyrange as 'select int4range(1,10)' language sql; |
|
|
|
@ -1287,14 +1287,14 @@ select * from table_succeed(123, int4range(1,11)); |
|
|
|
|
create function outparam_fail(i anyelement, out r anyrange, out t text) |
|
|
|
|
as $$ select '[1,10]', 'foo' $$ language sql; |
|
|
|
|
ERROR: cannot determine result data type |
|
|
|
|
DETAIL: A function returning ANYRANGE must have at least one ANYRANGE argument. |
|
|
|
|
DETAIL: A function returning "anyrange" must have at least one "anyrange" argument. |
|
|
|
|
--should fail |
|
|
|
|
create function inoutparam_fail(inout i anyelement, out r anyrange) |
|
|
|
|
as $$ select $1, '[1,10]' $$ language sql; |
|
|
|
|
ERROR: cannot determine result data type |
|
|
|
|
DETAIL: A function returning ANYRANGE must have at least one ANYRANGE argument. |
|
|
|
|
DETAIL: A function returning "anyrange" must have at least one "anyrange" argument. |
|
|
|
|
--should fail |
|
|
|
|
create function table_fail(i anyelement) returns table(i anyelement, r anyrange) |
|
|
|
|
as $$ select $1, '[1,10]' $$ language sql; |
|
|
|
|
ERROR: cannot determine result data type |
|
|
|
|
DETAIL: A function returning ANYRANGE must have at least one ANYRANGE argument. |
|
|
|
|
DETAIL: A function returning "anyrange" must have at least one "anyrange" argument. |
|
|
|
|