Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6B4629F9297 for ; Mon, 5 Nov 2007 21:43:06 -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 43492-03 for ; Mon, 5 Nov 2007 21:43:02 -0400 (AST) Received: from web31811.mail.mud.yahoo.com (web31811.mail.mud.yahoo.com [68.142.207.74]) by postgresql.org (Postfix) with SMTP id 608F59F9295 for ; Mon, 5 Nov 2007 21:43:02 -0400 (AST) Received: (qmail 24211 invoked by uid 60001); 6 Nov 2007 01:43:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=w/w+KUHU3h/i0dXIOyQEnOcK16V0RJek6sihbem3Zb43FYWgf2nep6xLkxxt/969Oq5UxIFCemGVFZFOAXgKQdpmy6qOUf8adEwfAIJq85Rf+12vpi1yVTrWdso5td7CMuN39E5G2LiV4PFX4t/wCxUphM8rQditUCxVToBnQOM=; X-YMail-OSG: LdLhQGgVM1mHlCRD_CrnouMyLG5ZdcoyJD_fFaa6.rih3mIkewyrK0jqQVWQQAojHBLpHw-- Received: from [75.84.89.248] by web31811.mail.mud.yahoo.com via HTTP; Mon, 05 Nov 2007 17:43:00 PST X-Mailer: YahooMailWebService/0.7.154 Date: Mon, 5 Nov 2007 17:43:00 -0800 (PST) From: Richard Broersma Jr Subject: Re: Either I broke PostgreSQL or I found an ODBC bug To: Hiroshi Inoue Cc: Postgresql ODBC List In-Reply-To: <472FB681.10009@tpf.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <900929.17157.qm@web31811.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.256 tagged_above=0 required=5 tests=AWL=0.255, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200711/5 X-Sequence-Number: 9220 --- On Mon, 11/5/07, Hiroshi Inoue wrote: > 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 ? No, I guess I did break Postgres with the inttobool function. :-( I was expecting a null boolean to return a null and not return a false. I guess my next question would be, how do I go about extracting or fix the inttobool() function in postgres? Ms-access can't update any of these records that have fields that incorrectly appear to be false when the contents are actually boolean null's, since Access includes these fields in the as part of the update statement's where condition that is sent to postgresql. When this happens PostgreSQL notifies MS-access that zero records where updated and the transaction is rolled back. i.e. update ... where chkfield = '0' -- when chkfield is acutally null. Thanks for the help! Regards, Richard Broersma Jr.