Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 2276B9FB355 for ; Fri, 6 Oct 2006 20:47:35 -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 80104-04 for ; Fri, 6 Oct 2006 23:47:22 +0000 (UTC) X-Greylist: delayed 00:31:40.68868 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 9B64A9FB443 for ; Fri, 6 Oct 2006 20:47:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail2.pcfruit.com (unknown [65.122.178.131]) by svr4.postgresql.org (Postfix) with ESMTP id 9DC6A5AF02A for ; Fri, 6 Oct 2006 23:15:40 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail2.pcfruit.com (Postfix) with ESMTP id 72E781B299B; Fri, 6 Oct 2006 16:15:37 -0700 (PDT) X-Virus-Scanned: amavisd-new at pcfruit.com Received: from mail2.pcfruit.com ([127.0.0.1]) by localhost (mail2.pcfruit.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P2ZdZnSS1+PK; Fri, 6 Oct 2006 16:15:33 -0700 (PDT) Received: from [192.168.1.14] (pcf0003.pcfruit.com [192.168.1.14]) by mail2.pcfruit.com (Postfix) with ESMTP id 4D4C51B3341; Fri, 6 Oct 2006 16:15:33 -0700 (PDT) Message-ID: <4526E3F4.1030703@pcfruit.com> Date: Fri, 06 Oct 2006 16:17:09 -0700 From: Avery Payne User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Hiroshi Inoue Cc: pgsql-odbc@postgresql.org Subject: Re: Representing Empty DATE values as NULL References: <451801CA.5020500@pcfruit.com> In-Reply-To: <451801CA.5020500@pcfruit.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.069 tagged_above=0 required=5 tests=SPF_NEUTRAL X-Spam-Level: * X-Archive-Number: 200610/8 X-Sequence-Number: 8271 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.