Received: from smtp.stellison.co.uk ([212.56.66.225]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eBIDcP681925 for ; Mon, 18 Dec 2000 08:38:25 -0500 (EST) (envelope-from francis@stellison.co.uk) Received: (qmail 23298 invoked from network); 18 Dec 2000 13:39:04 -0000 Received: from unknown (HELO neo) (unknown) by unknown with SMTP; 18 Dec 2000 13:39:04 -0000 From: "Francis Solomon" To: "Stephen Davies" , Subject: RE: ODBC handling of bools? Date: Mon, 18 Dec 2000 13:39:22 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-reply-to: <200012170935.UAA13378@mustang.sdc.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal X-Archive-Number: 200012/151 X-Sequence-Number: 495 Hi Stephen, To test boolean values I use: SELECT * FROM member WHERE weekends='t' ... and it works just fine through the ODBC driver. (ODBC 6.50, PostgreSQL 7.02). Hope this helps Francis Solomon > Hello. > > I have a VB5 application which uses ODBC 6.5 (2/4/00) to > access a Postgresql 7.0.2 > database. > > Everything works just fine except for booleans. > > I manually generate the SQL to be sent to the ODBC driver ] > eg select * from member where weekends > or select * from member where weekends=true > > but this fails because somewhere in the driver, this is translated to > select * from member where weekends <> 0 and this causes an error > because there is no operator to compare bools and integers. > > I have tried with the "bools as char" option on and off with > no effect. > > I thought that this stuff had been fixed a couple of years > ago. Did it > break again or am I just missing something basic? > > How does one make bool tests work ?