Re: BUG #5054: PDO -> Query returns "" from Boolean type field, if it has false value.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Yujin" <aloudnoise(at)mail(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5054: PDO -> Query returns "" from Boolean type field, if it has false value.
Date: 2009-09-14 14:27:54
Message-ID: 16070.1252938474@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Yujin" <aloudnoise(at)mail(dot)ru> writes:
> When i get query from table with bolean type fields, that have false value ,
> function PDO -> fetch return that fields with not "0" value , but empty
> string.

Are you sure the field is actually false, and not null?

If so, this is a PDO bug, not a Postgres bug.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sam Mason 2009-09-14 14:48:49 Re: BUG #5053: domain constraints still leak
Previous Message Tom Lane 2009-09-14 14:22:34 Re: BUG #5053: domain constraints still leak