From: Francis Solomon <francis@stellison.co.uk>
To: Stephen Davies <scldad@sdc.com.au>
To: pgsql-interfaces@postgresql.org
Subject: RE: ODBC handling of bools?
Date: Mon, 18 Dec 2000 13:39:22 -0000
Message-ID: <NEBBIFFPELJMCJAODNPKGEAMCEAA.francis@stellison.co.uk> (raw)
In-Reply-To: <200012170935.UAA13378@mustang.sdc.com.au>
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 ?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-interfaces@postgresql.org
Cc: francis@stellison.co.uk, scldad@sdc.com.au
Subject: Re: ODBC handling of bools?
In-Reply-To: <NEBBIFFPELJMCJAODNPKGEAMCEAA.francis@stellison.co.uk>
References: <200012170935.UAA13378@mustang.sdc.com.au> <NEBBIFFPELJMCJAODNPKGEAMCEAA.francis@stellison.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox