Re: no implicit cast error in 9.2?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: no implicit cast error in 9.2?
Дата
Msg-id 26239.1360367527@sss.pgh.pa.us
обсуждение исходный текст
Ответ на no implicit cast error in 9.2?  (AI Rumman <rummandba@gmail.com>)
Список pgsql-general
AI Rumman <rummandba@gmail.com> writes:
> I got a bit confused after installing this version. So far I used to know
> that from Postgresql 8.3 implicit casting has been removed and the
> following should not work at 8.3 :
> create table testtab ( id varchar, id1 int)
> insert into testtab values (1,1);

No, that will work fine in any version, because you're calling upon an
assignment cast not an implicit cast.  What once worked and no longer
does is cases like

SELECT length(1);

where the integer argument used to be implicitly cast to text.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: var/log/postgresql deletion mystery Ubuntu 12.10
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Swapping volumes under tablespaces: supported?