Received: from mustang.sdc.com.au (mustang.sdc.com.au [203.2.199.1]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBH9ZR693855 for ; Sun, 17 Dec 2000 04:35:28 -0500 (EST) (envelope-from scldad@mustang.sdc.com.au) Received: from mustang.sdc.com.au (localhost [127.0.0.1]) by mustang.sdc.com.au (8.9.1a/8.9.1) with ESMTP id UAA13378 for ; Sun, 17 Dec 2000 20:05:43 +1030 Message-Id: <200012170935.UAA13378@mustang.sdc.com.au> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: pgsql-interfaces@postgresql.org Subject: ODBC handling of bools? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 17 Dec 2000 20:05:42 +1030 From: Stephen Davies X-Archive-Number: 200012/141 X-Sequence-Number: 485 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 ? Cheers and thanks, Stephen Davies ======================================================================== Stephen Davies Consulting scldad@sdc.com.au Adelaide, South Australia. Voice: 08-8177 1595 Computing & Network solutions. Fax: 08-8177 0133