Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 362DF9F928A for ; Mon, 5 Nov 2007 20:34:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 14762-06 for ; Mon, 5 Nov 2007 20:34:15 -0400 (AST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 74B569F9284 for ; Mon, 5 Nov 2007 20:34:14 -0400 (AST) Received: (qmail 17752 invoked from network); 6 Nov 2007 09:34:10 +0900 X-Authentication: inoue was authenticated by ftp.tpf.co.jp at 6 Nov 2007 09:34:10 +0900 Received: from unknown (HELO ?10.190.204.223?) (58.159.19.210) by ftp.tpf.co.jp with SMTP; 6 Nov 2007 09:34:10 +0900 Message-ID: <472FB681.10009@tpf.co.jp> Date: Tue, 06 Nov 2007 09:34:09 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Richard Broersma Jr CC: Postgresql ODBC List Subject: Re: Either I broke PostgreSQL or I found an ODBC bug References: <707788.26077.qm@web31812.mail.mud.yahoo.com> In-Reply-To: <707788.26077.qm@web31812.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/4 X-Sequence-Number: 9219 Richard Broersma Jr wrote: > I am using the ODBC provider [8.02.05.0000] to connect my postgresql database [8.2.5] with my MS ACCESS XP front-end. > > This is what I am seeing: When I issue a select statement from with-in ms-access, the Boolean field that contain null values are returning as false( as 0 in the datasheet view). My expectation is that null Boolean values display as null rather than false. When I issue the same query with-in psql the null boolean values correctly display as NULL. > > A while back I applied the following directions to MS-Access' [yes/no] type to create a better mapping with PostgreSQL's Boolean type. I don't know if these direction are redundant to what is already provided in the ODBC provider. Perhaps the operator that I've created is causing the problem I am seeing. > http://archives.postgresql.org/pgsql-odbc/2006-09/msg00103.php Using inttobool(int, bool) defined in the above URL, I see the following. xxxxx=> select inttobool(NULL, true); inttobool ----------- f (1 row) xxxxx=> select inttobool(NULL, false); inttobool ----------- f (1 row) Is it what you expected ? regards, Hiroshi Inoue