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

From Tom Lane
Subject Re: BUG #5054: PDO -> Query returns "" from Boolean type field, if it has false value.
Date
Msg-id 16070.1252938474@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5054: PDO -> Query returns "" from Boolean type field, if it has false value.  ("Yujin" <aloudnoise@mail.ru>)
Responses Re: BUG #5054: PDO -> Query returns "" from Boolean type field, if it has false value.  (Mark Kirkwood <mark.kirkwood@catalyst.net.nz>)
List pgsql-bugs
"Yujin" <aloudnoise@mail.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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5053: domain constraints still leak
Next
From: Sam Mason
Date:
Subject: Re: BUG #5053: domain constraints still leak