Re: [SQL] Type casting bool?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "tjk(at)tksoft(dot)com" <tjk(at)tksoft(dot)com>
Cc: phil(at)Stimpy(dot)netroedge(dot)com, pgsql-sql(at)hub(dot)org
Subject: Re: [SQL] Type casting bool?
Date: 2000-02-13 06:36:09
Message-ID: 2517.950423769@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 be
false => 0
true => 1
NULL => NULL

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Donald Bauer 2000-02-13 21:36:45 subscribe pgsql-sql-digest
Previous Message tjk@tksoft.com 2000-02-13 00:31:25 Re: [SQL] Type casting bool?