Received: from u1.abs.net (root@u1.abs.net [207.114.0.131]) by hub.org (8.8.8/8.7.5) with ESMTP id PAA24824 for ; Mon, 11 May 1998 15:16:50 -0400 (EDT) Received: from insightdist.com (nobody@localhost) by u1.abs.net (8.8.5/8.8.5(+AntiRelay)) with UUCP id PAA15251 for pgsql-interfaces@postgreSQL.org; Mon, 11 May 1998 15:05:27 -0400 (EDT) X-Authentication-Warning: u1.abs.net: nobody set sender to insightdist.com!byronn using -f Received: from ceodev by insightdist.com (AIX 3.2/UCB 5.64/4.03) id AA29018; Mon, 11 May 1998 14:38:47 -0400 Received: from [3.0.0.50] by ceodev (AIX 4.1/UCB 5.64/4.03) id AA37738; Mon, 11 May 1998 14:38:46 -0400 Message-Id: <35574688.C434D15@insightdist.com> Date: Mon, 11 May 1998 14:42:16 -0400 From: Byron Nikolaidis X-Mailer: Mozilla 4.05 [en] (Win95; I) Mime-Version: 1.0 To: Sbragion Denis Cc: "Jose' Soares Da Silva" , interfaces postgres , "Jackson, DeJuan" , Hannu Krosing Subject: Re: [INTERFACES] Re: NEW ODBC DRIVER References: <3.0.5.32.19980511181524.007efe40@MBox.InfoTecna.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sbragion Denis wrote: > Hello, > > At 08.35 11/05/98 -0400, Byron Nikolaidis wrote: > >As for the BOOL problem, I tried to return it as a SQL_BOOL, but Access > >displayed it as 0=FALSE, and (-1)=TRUE. Why does TRUE translate to a -1, I > >have no idea. But for that reason, I chose to make it a character type > >instead. > > This is an MS brain damage implementation of Booleans. It is used this way > starting from MS Access 1.0 up to VB 5.0. I don't know why MS decided to > use this convention in the early MS Access 1.0 age but for compatibility > reason they had to retain it up to the most recent version of their > development programs. > > OK, I'm gonna make it an option. But, as I mentioned before, there are some weirdnesses with Access. Here's another weird thing with the way it handles NULL SQL_BIT columns. If I have my Postgres bool column, and it contains a NULL, Access automatically displays it as "0". Then if I try to update the record, it uses the "0" in the where clause. Well guess what, no records are updated because the "0" doesn't match the NULL in the record, and you get this ugly message about a user conflict! When BOOLS are handled as character data, this doesnt happen of course. Anybody got any ideas about this? Byron