Re: ALTER TABLE ( smallinto -> boolean ) ...

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: ALTER TABLE ( smallinto -> boolean ) ...
Дата
Msg-id 874q974l8p.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: ALTER TABLE ( smallinto -> boolean ) ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> You could do something like
> 
> ... type boolean using case when field1=0 then false else true end;

Or you could save typing and just use "USING field1<>0"

Odd that everyone did a CASE for that.


-- 
greg



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

Предыдущее
От: "David Parker"
Дата:
Сообщение: Re: [Slony1-general] Re: dangling lock information?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Intermittent stats test failures on buildfarm