pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Richard Broersma Jr <rabroersma@yahoo.com>
Cc: Postgresql ODBC List <pgsql-odbc@postgresql.org>
Subject: Re: Either I broke PostgreSQL or I found an ODBC bug
Date: Tue, 06 Nov 2007 09:34:09 +0900
Message-ID: <472FB681.10009@tpf.co.jp> (raw)
In-Reply-To: <707788.26077.qm@web31812.mail.mud.yahoo.com>
References: <707788.26077.qm@web31812.mail.mud.yahoo.com>

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




view thread (6+ messages)  latest in thread

Message-ID: <472FB681.10009@tpf.co.jp>
Permalink:  ../472FB681.10009@tpf.co.jp/
Also on:    postgresql.org/message-id/472FB681.10009@tpf.co.jp

 · 

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

* 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