Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id EDA809FBB7C for ; Wed, 2 May 2007 07:40:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 03870-03 for ; Wed, 2 May 2007 07:40:05 -0300 (ADT) X-Greylist: delayed 00:24:42.484411 by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 4287A9FBC08 for ; Wed, 2 May 2007 07:39:58 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from technovell.com (219.Red-213-97-5.staticIP.rima-tde.net [213.97.5.219]) by svr4.postgresql.org (Postfix) with ESMTP id BD83A5AFC9C for ; Wed, 2 May 2007 10:15:11 +0000 (GMT) Received: from [192.168.1.200] yapt [192.168.1.200] by technovell.com with NetMail SMTP Agent $Revision: 3.22.1.16 $ on Linux via secured & encrypted transport (TLS); Wed, 02 May 2007 12:15:08 +0200 Message-ID: <463864E8.1030400@technovell.com> Date: Wed, 02 May 2007 12:16:08 +0200 From: Terry Yapt User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Setting null to date field from Delphi. 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=0.136 tagged_above=0 required=5 tests=BAYES_50=0.001, FORGED_RCVD_HELO=0.135 X-Spam-Level: X-Archive-Number: 200705/10 X-Sequence-Number: 8923 I am working with Delphi 2006 and pgsql-odbc driver 8.02.02.00 to 8.02.04.00. I am trying to set a date field to null. In spite of the boolean value of 'Dataset.FieldByName('datefield').isnull' is returning true (onBeforePost event), PostgreSQL is complaining with error: 22008 and showing the date: '0001-00-00' as the wrong date value. If someone have any idea it would be very appreciated. Thanks.