Re: some problem with casting unknown to smallint

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: some problem with casting unknown to smallint
Дата
Msg-id 11058.1225282862@sss.pgh.pa.us
обсуждение исходный текст
Ответ на some problem with casting unknown to smallint  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: some problem with casting unknown to smallint  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Updating FSM on recovery
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: some problem with casting unknown to smallint