Re: [SQL] Type casting bool? - Mailing list pgsql-sql

From Tom Lane
Subject Re: [SQL] Type casting bool?
Date
Msg-id 2517.950423769@sss.pgh.pa.us
Whole thread Raw
In response to Re: [SQL] Type casting bool?  ("tjk@tksoft.com" <tjk@tksoft.com>)
List pgsql-sql
A number of people have suggested that there should be an int4(bool)
conversion function, but no one's got round to actually writing it.

Presumably the behavior ought to befalse => 0true  => 1NULL  => NULL
        regards, tom lane


pgsql-sql by date:

Previous
From: "tjk@tksoft.com"
Date:
Subject: Re: [SQL] Type casting bool?
Next
From: Peter Stamfest
Date:
Subject: text -> char