convert integer to bool implicitly

Поиск
Список
Период
Сортировка
От Sim Zacks
Тема convert integer to bool implicitly
Дата
Msg-id do4ag4$1rsm$1@news.hub.org
обсуждение исходный текст
Ответы Re: convert integer to bool implicitly  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-general
How easy would it be to write a small type extension to have integer
automatically convert to bool?
For example, I want an implicit conversion that 0 is false and
everything else is true.

Is this C programming or can you do it with a local procedural language?

Thanks
Sim

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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: is this a bug or I am blind?
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: convert integer to bool implicitly