Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 296504758E1 for ; Tue, 31 Dec 2002 10:29:09 -0500 (EST) Received: from ibis.city-map.de (proxy.firewall-by-call.de [62.116.172.146]) by postgresql.org (Postfix) with ESMTP id 1AAA5475843 for ; Tue, 31 Dec 2002 10:29:08 -0500 (EST) Received: from mail.topconcepts.net (217.227.53.70) by mail.city-map.de with [XMail 1.11 (Linux/Ix86) ESMTP Server] id for from ; Tue, 31 Dec 2002 16:28:33 +0100 Received: from henrik (192.168.0.113) by blah.topconcepts.net with [XMail 1.11 (Linux/Ix86) ESMTP Server] id for from ; Tue, 31 Dec 2002 16:25:04 +0100 Message-ID: <018e01c2b0e1$54973100$7100a8c0@henrik> From: "Henrik Steffen" To: "Peter Haworth" Cc: References: <018001c2b0d7$712013a0$7100a8c0@henrik> Subject: Re: boolean 't' 'f' vs. '1' '0' - perl question Date: Tue, 31 Dec 2002 16:28:55 +0100 Organization: www.topconcepts.de MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/1196 X-Sequence-Number: 35111 thanks, this works fine for me ;-) happy new year, -- Mit freundlichem Gruß Henrik Steffen Geschäftsführer top concepts Internetmarketing GmbH Am Steinkamp 7 - D-21684 Stade - Germany -------------------------------------------------------- http://www.topconcepts.com Tel. +49 4141 991230 mail: steffen@topconcepts.com Fax. +49 4141 991233 -------------------------------------------------------- 24h-Support Hotline: +49 1908 34697 (EUR 1.86/Min,topc) -------------------------------------------------------- Ihr SMS-Gateway: JETZT NEU unter: http://sms.city-map.de System-Partner gesucht: http://www.franchise.city-map.de -------------------------------------------------------- Handelsregister: AG Stade HRB 5811 - UstId: DE 213645563 -------------------------------------------------------- ----- Original Message ----- From: "Peter Haworth" To: "Henrik Steffen" ; Sent: Tuesday, December 31, 2002 4:11 PM Subject: Re: [GENERAL] boolean 't' 'f' vs. '1' '0' - perl question > On Tue, 31 Dec 2002 15:18:08 +0100, Henrik Steffen wrote: > > I am just trying to (finally) upgrade from Pg.pm to > > DBI (DBD::Pg) ... > > > > Until today, Pg.pm delivered a 't' or a 'f' for > > true or false boolean values. > > > > Since the upgrade, DBI delivers a '1' or a '0'. > > > > Question: Does anyone know if there's possibly a > > parameter to set to tell DBI to deliver 't' and 'f' > > instead of '1' and '0' ? > > Not in the current version. It looks like it should be easy enough to hack, > though. Just remove lines 1360-1362 of dbdimp.c: > > if (16 == type) { > *val = (*val == 'f') ? '0' : '1'; /* bool: translate postgres into perl */ > } > > This will probably mean that tests will fail, but looks harmless enough > otherwise. > > > -- > Peter Haworth pmh@edison.ioppublishing.com > "I don't have to impress you. And as you're an emacs weenie who > doesn't even speak Martian Swahili, I would never expect to." > -- Tom Christiansen