pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: Postgresql ODBC List <pgsql-odbc@postgresql.org>
Subject: Re: Either I broke PostgreSQL or I found an ODBC bug
Date: Mon, 5 Nov 2007 17:43:00 -0800 (PST)
Message-ID: <900929.17157.qm@web31811.mail.mud.yahoo.com> (raw)
In-Reply-To: <472FB681.10009@tpf.co.jp>

--- On Mon, 11/5/07, Hiroshi Inoue <inoue@tpf.co.jp> 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.



view thread (6+ messages)  latest in thread

Message-ID: <900929.17157.qm@web31811.mail.mud.yahoo.com>
Permalink:  ../900929.17157.qm@web31811.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/900929.17157.qm@web31811.mail.mud.yahoo.com

 · 

reply

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-odbc@postgresql.org
  Cc: rabroersma@yahoo.com, inoue@tpf.co.jp
  Subject: Re: Either I broke PostgreSQL or I found an ODBC bug
  In-Reply-To: <900929.17157.qm@web31811.mail.mud.yahoo.com>
  References: <472FB681.10009@tpf.co.jp> <900929.17157.qm@web31811.mail.mud.yahoo.com>

* 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