pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Avery Payne <apayne@pcfruit.com>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Representing Empty DATE values as NULL
Date: Fri, 06 Oct 2006 16:17:09 -0700
Message-ID: <4526E3F4.1030703@pcfruit.com> (raw)
In-Reply-To: <451801CA.5020500@pcfruit.com>
References: <451801CA.5020500@pcfruit.com>

I'm sorry that I haven't written in awhile with my findings.  I have 
completed the FoxPro->ODBC->Access test and the Access ODBC driver 
returns a NULL for empty dates.  I've also read up a bit more on ODBC 
and have figured out the following:

1. ODBC doesn't really support the idea of an empty date.  There just 
isn't a representation for it.  However...
2. ODBC does support returning NULL values, so...
3. Empty dates represented as NULL will have to be an adequate solution 
to the issue.  This means...
4. ODBC sending data from client->odbc->server with empty dates 
translating as NULL should be acceptable, maybe even for the majority of 
cases, and
5. ODBC sending data from server->odbc->client with NULL as a date is 
the only real representation that can be afforded to any client.

The option to pass "empty dates" as NULLs in client->odbc->server might 
be one you wish to make available on a permanent basis; or better yet, 
just quietly perform the translation in all cases as a default 
behavior.  Any comments or suggestions about making it permanent?  Will 
it mess something up elsewhere?

P.S. I want to personally thank you, Hiroshi, for your tireless time and 
effort in looking into this issue.  Your willingness to entertain this 
new feature is a refreshing break from other open source projects that I 
have interacted with in the past, many of which didn't bother to even 
look at requests, much less think about them.  My hat is off to you.



view thread (4+ messages)  latest in thread

Message-ID: <4526E3F4.1030703@pcfruit.com>
Permalink:  ../4526E3F4.1030703@pcfruit.com/
Also on:    postgresql.org/message-id/4526E3F4.1030703@pcfruit.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: apayne@pcfruit.com, inoue@tpf.co.jp
  Subject: Re: Representing Empty DATE values as NULL
  In-Reply-To: <4526E3F4.1030703@pcfruit.com>
  References: <451801CA.5020500@pcfruit.com> <4526E3F4.1030703@pcfruit.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