Re: How to convert integer to boolean in insert

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to convert integer to boolean in insert
Дата
Msg-id 4894.1238947247@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to convert integer to boolean in insert  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> On Sun, Apr 05, 2009 at 04:14:37AM -0700, JiangMiao wrote:
>> Is there any way to make pgsql implicit cast the integer to boolean?

> You might want to create the cast temporarily and after the import
> remove it again.

The cast exists already, so he can't just "create" it.  Personally, what
I'd do is modify the pg_cast entry for it (set castcontext to 'a' and
then revert when done).

            regards, tom lane

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: How to convert integer to boolean in insert
Следующее
От: Jennifer Trey
Дата:
Сообщение: Connect to server PG from laptop java app