Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 77F64632FBA; Wed, 10 Feb 2010 08:32:24 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 14623-10; Wed, 10 Feb 2010 12:32:13 +0000 (UTC) X-Greylist: delayed 00:18:49.135621 by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-out1.uio.no (mail-out1.uio.no [129.240.10.57]) by mail.postgresql.org (Postfix) with ESMTP id EA6D5632FB5; Wed, 10 Feb 2010 08:32:13 -0400 (AST) Received: from mail-mx2.uio.no ([129.240.10.30]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1NfBRa-0000cX-K6; Wed, 10 Feb 2010 13:13:22 +0100 Received: from inhaca.uio.no ([129.240.6.208]) by mail-mx2.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1NfBRa-000812-AP; Wed, 10 Feb 2010 13:13:22 +0100 Message-ID: <4B72A2E2.4050906@usit.uio.no> Date: Wed, 10 Feb 2010 13:13:22 +0100 From: Tommy Gildseth User-Agent: Thunderbird 2.0.0.23 (X11/20090812) MIME-Version: 1.0 To: Thom Brown CC: pgsql-php@postgresql.org, PGSQL Mailing List Subject: Re: PHP and PostgreSQL boolean data type References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-UiO-Ratelimit-Test: rcpts/h 3 msgs/h 1 sum rcpts/h 5 sum msgs/h 3 total rcpts 1046 max rcpts/h 17 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: A36A53557A2AFBE551C0BB11D4BE5FA0266716C3 X-UiO-SPAM-Test: remote_host: 129.240.6.208 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 626 max/h 5 blacklist 0 greylist 0 ratelimit 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201002/432 X-Sequence-Number: 159208 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