Re: mssql migration and boolean to integer problems

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: mssql migration and boolean to integer problems
Дата
Msg-id 350222.58437.qm@web31806.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: mssql migration and boolean to integer problems  (robert <robertlazarski@gmail.com>)
Список pgsql-general
--- On Thu, 12/13/07, robert <robertlazarski@gmail.com> wrote:

> > Hi all, I've spent the last few days hacking a
> mssql INSERT script to
> > work with 8.1.9 - I could build the latest postgres
> source if need be.

a standard cast() wouldn't work for you?

proj02u20411=> select cast( 1 as boolean),
proj02u20411=> cast( 0 as boolean),
proj02u20411=> cast( -1 as boolean ),
proj02u20411=> cast( 2 as boolean);

 bool | bool | bool | bool
------+------+------+------
 t    | f    | t    | t

Regards,
Richard Broersma Jr.

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: user name and password woes
Следующее
От: "Heiner Vega"
Дата:
Сообщение: postgres writer process growing up too much