From 698fac8ff2fa206df217d147abe37253b16df81b Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 22 Nov 2020 14:22:03 +0100 Subject: [PATCH] Add test to ignore functions unnamed arguments for rpc disambiguation, resolves #1638 --- CHANGELOG.md | 2 +- test/fixtures/schema.sql | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33da83cc5..74c356778 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +25,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - #1585, Fix error messages on connection failure for localized postgres on Windows - @wolfgangwalther - #1636, Fix `application/octet-stream` appending `charset=utf-8` - @steve-chavez - #1615, Fix RPC return type handling and embedding for domains with composite base type - @wolfgangwalther - - #1469, Fix overloading of functions with unnamed arguments - @wolfgangwalther + - #1469, #1638 Fix overloading of functions with unnamed arguments - @wolfgangwalther ### Changed diff --git a/test/fixtures/schema.sql b/test/fixtures/schema.sql index 0fe2c6ee8..f47f9b439 100644 --- a/test/fixtures/schema.sql +++ b/test/fixtures/schema.sql @@ -970,6 +970,12 @@ create function test.ret_setof_integers() returns setof integer as $$ values (1), (2), (3); $$ language sql; +-- this function does not have named arguments and should be ignored +-- if it's not ignored, it will break the test for the function before +create function test.ret_setof_integers(int, int) returns integer AS $$ + values (1); +$$ language sql; + create function test.ret_scalars() returns table( a text, b test.enum_menagerie_type, c test.one_nine, d int4range ) as $$