Re: some problem with casting unknown to smallint

Поиск
Список
Период
Сортировка
Искать
От
Pavel Stehule
Тема
Re: some problem with casting unknown to smallint
Дата
Msg-id
162867790810290531j632a5336of4846cbe2331e7bb@mail.gmail.com
Ответ на
Список
Дерево обсуждения
some problem with casting unknown to smallint "Pavel Stehule" <pavel.stehule@gmail.com>
Re: some problem with casting unknown to smallint Tom Lane <tgl@sss.pgh.pa.us>
Re: some problem with casting unknown to smallint "Pavel Stehule" <pavel.stehule@gmail.com>
Re: some problem with casting unknown to smallint Tom Lane <tgl@sss.pgh.pa.us>
Re: some problem with casting unknown to smallint "Pavel Stehule" <pavel.stehule@gmail.com>
2008/10/29 Tom Lane :
> "Pavel Stehule"  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')
>

I understand. So every smallint should be call with casting?

regards
Pavel Stehule


>                        regards, tom lane
>

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Tom Lane
Дата:
Сообщение: Re: Updating FSM on recovery
FAQ