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

From Tom Lane
Subject Re: some problem with casting unknown to smallint
Date
Msg-id 11058.1225282862@sss.pgh.pa.us
Whole thread Raw
In response to some problem with casting unknown to smallint  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: some problem with casting unknown to smallint
List pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> I am not sure, it's probably bug.

> postgres=# create function t1(smallint) returns smallint as $$select
> $1$$ language sql;
> CREATE FUNCTION
> postgres=# select t1(10);
> ERROR:  function t1(integer) does not exist

That's not "unknown to smallint", that's "integer to smallint",
which is not an implicit cast.

unknown to smallint would be t1('10')
        regards, tom lane


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Updating FSM on recovery
Next
From: "Pavel Stehule"
Date:
Subject: Re: some problem with casting unknown to smallint