Re: PHP and PostgreSQL boolean data type

From: Tommy Gildseth <tommy(dot)gildseth(at)usit(dot)uio(dot)no>
To: Thom Brown <thombrown(at)gmail(dot)com>
Cc: pgsql-php(at)postgresql(dot)org, PGSQL Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: PHP and PostgreSQL boolean data type
Date: 2010-02-10 12:13:22
Message-ID: 4B72A2E2.4050906@usit.uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-php

Thom Brown wrote:
> Is this a limitation of libpq or a flawed implementation in the php
> library? And if this is just the case for backwards-compatibility, is
> there a way to switch it to a more sensible PHP data type?

Using PDO(http://no.php.net/pdo) will at least give you native values
for true/false. Arrays, I don't know, since I don't use them.

--
Tommy Gildseth

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Carsten Kropf 2010-02-10 12:17:37 Re: Extending SQL in C using VARIABLE length type
Previous Message A. Kretschmer 2010-02-10 12:11:42 Re: PHP and PostgreSQL boolean data type

Browse pgsql-php by date

  From Date Subject
Next Message Thom Brown 2010-02-10 12:44:35 Re: PHP and PostgreSQL boolean data type
Previous Message A. Kretschmer 2010-02-10 12:11:42 Re: PHP and PostgreSQL boolean data type