some problem with casting unknown to smallint - Mailing list pgsql-hackers

From Pavel Stehule
Subject some problem with casting unknown to smallint
Date
Msg-id 162867790810290107q73e2c40cre30aa492d5af52e0@mail.gmail.com
Whole thread Raw
Responses Re: some problem with casting unknown to smallint
List pgsql-hackers
Hello

I am not sure, it's probably bug.

postgres=# create function t1(smallint) returns smallint as $$select
$1$$ language sql;
CREATE FUNCTION
postgres=# create function t2(bigint) returns bigint as $$select $1$$
language sql;
CREATE FUNCTION
postgres=# select t1(10);
ERROR:  function t1(integer) does not exist
LINE 1: select t1(10);              ^
HINT:  No function matches the given name and argument types. You
might need to add explicit type casts.

but
postgres=# select t2(10);t2
----10
(1 row)

Regards
Pavel Stehule


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: PostgreSQL + Replicator developer meeting 10/28
Next
From: Svenne Krap
Date:
Subject: Re: Feature Request - Table Definition query