Skip site navigation (1) Skip section navigation (2)

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: (view raw or whole 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

			regards, tom lane

In response to

pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group