Re: PHP and PostgreSQL boolean data type - Mailing list pgsql-general

From Torsten Zühlsdorff
Subject Re: PHP and PostgreSQL boolean data type
Date
Msg-id hkuf1n$phl$1@news.eternal-september.org
Whole thread Raw
In response to PHP and PostgreSQL boolean data type  (Thom Brown <thombrown@gmail.com>)
List pgsql-general
Thom Brown schrieb:

> A long-standing problem we've had with PostgreSQL queries in PHP is
> that the returned data for boolean columns is the string 'f' instead
> of the native boolean value of false.

This problem is solved since nearly 5 years with PDO. You can use an
abstraction like DDDBL (see my signature) if you want to save time while
using PDO.

Greetings from Germany,
Torsten

--
http://www.dddbl.de - ein Datenbank-Layer, der die Arbeit mit 8
verschiedenen Datenbanksystemen abstrahiert,
Queries von Applikationen trennt und automatisch die Query-Ergebnisse
auswerten kann.

pgsql-general by date:

Previous
From: MOLINA BRAVO FELIPE DE JESUS
Date:
Subject: Re: xpath
Next
From: Ben Campbell
Date:
Subject: problems maintaining boolean columns in a large table