Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 63B84633218 for ; Wed, 10 Feb 2010 08:11:57 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 41160-06 for ; Wed, 10 Feb 2010 12:11:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by mail.postgresql.org (Postfix) with ESMTP id 87D7F632FDA for ; Wed, 10 Feb 2010 08:11:46 -0400 (AST) Received: from webserv.wug.de ([194.25.154.138]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MMpWJ-1Ndpxo45HD-008k4e; Wed, 10 Feb 2010 13:11:44 +0100 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1NfBPz-00039J-00 for pgsql-general@postgresql.org; Wed, 10 Feb 2010 13:11:43 +0100 Date: Wed, 10 Feb 2010 13:11:42 +0100 From: "A. Kretschmer" To: pgsql-general@postgresql.org Subject: Re: PHP and PostgreSQL boolean data type Message-ID: <20100210121142.GE17605@a-kretschmer.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: Debian/GNU Linux - weil ich es mir Wert bin! User-Agent: Mutt/1.5.9i X-Provags-ID: V01U2FsdGVkX1/EbcTuYzGeWTc1LKfXORCFywIjHDbKsKQNY94 ISNTr1cQ5bAvEpbHpqF74TavaH+p1/SNVjjwHnfZi8r8fJmnlo GH1/iSqV0a0f1MIKB3CgA== X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.927 tagged_above=-10 required=5 tests=AWL=-0.742, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 201002/430 X-Sequence-Number: 159206 In response to Thom Brown : > Hi, > > 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. http://andreas.scherbaum.la/blog/archives/302-BOOLEAN-datatype-with-PHP-compatible-output.html Regards, Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431 2EB0 389D 1DC2 3172 0C99