some problem with casting unknown to smallint

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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: PostgreSQL + Replicator developer meeting 10/28
Следующее
От: Svenne Krap
Дата:
Сообщение: Re: Feature Request - Table Definition query