boolean to int

From: Mage <mage(at)mage(dot)hu>
To: pgsql-general(at)postgresql(dot)org
Subject: boolean to int
Date: 2004-03-15 18:50:19
Message-ID: 4055FAEB.3020009@mage.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I'm wondering why pgsql doesn't support boolean typecasts like select
true::int;
Many client applications including php assign 1 to true and 0 to false

I see no use of pgsql boolean type with php, I use int2 or integer.

Mage

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2004-03-15 18:53:29 Re: returning row numbers in select
Previous Message Edwin Pauli 2004-03-15 18:49:32 Re: PostgeSQL problem (server crashed?)