On Jan 13, 2006, at 8:47 AM, Michael Glaesemann wrote:
You can definitely cast boolean to integer:
The poster mentioned using PostgreSQL/PHP which may be the real source of the issue. Boolean values are returned to PHP as strings 't' and 'f'. Of course, 'f' is not equivalent to FALSE in PHP. It would be really nice if the PHP module returned a false value instead of 'f'.
John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL