pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Torsten Zühlsdorff <foo@meisterderspiele.de>
To: pgsql-general@postgresql.org
Subject: Re: PHP and PostgreSQL boolean data type
Date: Thu, 11 Feb 2010 08:42:35 +0100
Message-ID: <hl0cdb$a3k$1@news.eternal-september.org> (raw)
In-Reply-To: <bddc86151002100404o76e1acc9r469d82a49284b7b5@mail.gmail.com>
References: <bddc86151002100404o76e1acc9r469d82a49284b7b5@mail.gmail.com>

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.



view thread (8+ messages)  latest in thread

Message-ID: <hl0cdb$a3k$1@news.eternal-september.org>
Permalink:  ../hl0cdb$a3k$1@news.eternal-september.org/
Also on:    postgresql.org/message-id/hl0cdb$a3k$1@news.eternal-september.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: foo@meisterderspiele.de, pgsql-general@postgresql.org
  Subject: Re: PHP and PostgreSQL boolean data type
  In-Reply-To: <hl0cdb$a3k$1@news.eternal-september.org>
  References: <bddc86151002100404o76e1acc9r469d82a49284b7b5@mail.gmail.com> <hl0cdb$a3k$1@news.eternal-september.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox