Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 513DE9FB318 for ; Sat, 7 Oct 2006 02:19:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 50481-06 for ; Sat, 7 Oct 2006 05:19:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 4FD1D9FA418 for ; Sat, 7 Oct 2006 02:19:06 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 888F030E02; Sat, 7 Oct 2006 07:19:04 +0200 (MET DST) From: "Dmitriy Ivanov" X-Newsgroups: pgsql.interfaces.odbc Subject: Re: Representing Empty DATE values as NULL Date: Sat, 7 Oct 2006 09:23:09 +0400 Organization: Ystok-Systema Lines: 37 Message-ID: References: <451801CA.5020500@pcfruit.com> <4526E3F4.1030703@pcfruit.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Comment-To: Avery Payne To: pgsql-odbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200610/9 X-Sequence-Number: 8272 Hello Avery, "Avery Payne" wrote: AP> I'm sorry that I haven't written in awhile with my findings. I AP> have completed the FoxPro->ODBC->Access test and the Access ODBC AP> driver returns a NULL for empty dates. I've also read up a bit AP> more on ODBC and have figured out the following: AP> AP> 1. ODBC doesn't really support the idea of an empty date. There AP> just isn't a representation for it. However... AP> 2. ODBC does support returning NULL values, so... AP> 3. Empty dates represented as NULL will have to be an adequate AP> solution to the issue. This means... AP> 4. ODBC sending data from client->odbc->server with empty dates AP> translating as NULL should be acceptable, maybe even for the AP> majority of cases, and AP> 5. ODBC sending data from server->odbc->client with NULL as a date AP> is the only real representation that can be afforded to any client. AP> AP> The option to pass "empty dates" as NULLs in client->odbc->server AP> might be one you wish to make available on a permanent basis; or AP> better yet, just quietly perform the translation in all cases as a AP> default behavior. Any comments or suggestions about making it AP> permanent? Will it mess something up elsewhere? Excuse my interrupting, I also have no idea what an empty date is. IFAIK, such a concept neither exists in ODBC nor in Access. What is it? In my experience, Access can do with NULL quite fine and the Access ODBC driver too. -- Sincerely, Dmitriy Ivanov Common Lisp ODBC interface - lisp.ystok.ru/ysql.html