Received: from trends.net (root@clio.trends.ca [209.47.148.2]) by hub.org (8.8.8/8.7.5) with ESMTP id JAA15740 for ; Tue, 12 May 1998 09:18:01 -0400 (EDT) Received: from mailex.rz.fh-ulm.de (Mailex.rz.fh-ulm.de [141.59.42.15]) by trends.net (8.8.8/8.8.8) with ESMTP id DAA26538 for ; Tue, 12 May 1998 03:51:09 -0400 (EDT) Received: from gate.va.fh-ulm.de (gate.va.fh-ulm.de [141.59.15.1]) by mailex.rz.fh-ulm.de (8.8.8/8.8.8) with SMTP id JAA02852 for ; Tue, 12 May 1998 09:51:13 +0200 Received: by gate.va.fh-ulm.de (8.6.11) id JAA24248; Tue, 12 May 1998 09:51:14 +0200 Message-Id: <199805120751.JAA24248@gate.va.fh-ulm.de> Received: from va-sigi.va.fh-ulm.de(141.59.12.12) by gate.va.fh-ulm.de via smap (V1.3) id sma024244; Tue May 12 09:51:03 1998 Received: from VA-SIGI/SpoolDir by va-sigi.va.fh-ulm.de (Mercury 1.21); 12 May 98 09:50:59 +0200 Received: from SpoolDir by VA-SIGI (Mercury 1.21); 12 May 98 09:50:30 +0200 From: "Olaf Mittelstaedt" Organization: Verwaltung FH Ulm To: interfaces postgres Date: Tue, 12 May 1998 09:50:22 +0100 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: NEW ODBC DRIVER Priority: normal In-reply-to: <35574688.C434D15@insightdist.com> > > 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. > > > > 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? When migrating tables from Access 2.0 to an SQL Server (Informix, Interbase or PostgreSQL) I'm using INT4 to simulate boolean values (0=False, -1=True), all Access queries using boolean columns will work as before with native Access tables: "... WHERE (b=True);" selects all rows with column b == -1 "... WHERE (b=False);" selects all rows with column b == 0 "... WHERE (b is Null);" selects all rows with column b == NULL Of course you can't issue queries like "...where (b = true);" on the UNIX side. Regards, Olaf -- Olaf Mittelstaedt - IuK - mittelstaedt@fh-ulm.de Fachhochschule Ulm Prittwitzstr. 10 89075 Ulm Tel.: +49 (0)731-502-8220 Fax: -8270 Tertium non datur.