convert integer to bool implicitly - Mailing list pgsql-general

From Sim Zacks
Subject convert integer to bool implicitly
Date
Msg-id do4ag4$1rsm$1@news.hub.org
Whole thread Raw
Responses Re: convert integer to bool implicitly
List 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 by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: is this a bug or I am blind?
Next
From: Andreas Kretschmer
Date:
Subject: Re: convert integer to bool implicitly