Cast possible only throught a function

Поиск
Список
Период
Сортировка
От Mendola Gaetano
Тема Cast possible only throught a function
Дата
Msg-id 027401c3535c$bc14c400$10d4a8c0@mm.eutelsat.org
обсуждение исходный текст
Ответы Re: Cast possible only throught a function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hi all,
running on Postgres 7.3.3
I seen that cast a integer to an intervall is not permitted

select 0::interval;    <- give error

but

select 0::text::interval;   <- works fine

but I notice that the following function return correctly
doing the integer -> interval cast in one "shot":

create or replace function foo()
returns interval as '
declare
begin
 return 0;
end;
' language 'plpgsql';



this implicit cast could not be source of issue ?


Gaetano

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Kenji Sugita
Дата:
Сообщение: libpq.a must be ranlibed after installation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: libpq.a must be ranlibed after installation