Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id BEBDA9FBB92 for ; Fri, 4 May 2007 05:02:24 -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 99283-01 for ; Fri, 4 May 2007 05:02:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id EEC079FBD1D for ; Fri, 4 May 2007 05:02:19 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail.cibal.es (97.Red-80-59-70.staticIP.rima-tde.net [80.59.70.97]) by svr4.postgresql.org (Postfix) with ESMTP id A038B5AF03F for ; Fri, 4 May 2007 08:02:13 +0000 (GMT) Received: from Despacho (161.Red-80-24-189.staticIP.rima-tde.net [80.24.189.161]) by cibal.es (mail.cibal.es [192.168.200.2]) (MDaemon.PRO.v8.1.4.R) with ESMTP id md50000338174.msg for ; Fri, 04 May 2007 09:59:14 +0200 Message-ID: <004d01c78e22$3b731ae0$3900a8c0@Despacho> From: "Miguel Juan" To: "Terry Yapt" , References: <463864E8.1030400@technovell.com> Subject: Re: Setting null to date field from Delphi. Date: Fri, 4 May 2007 10:00:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Spam-Processed: mail.cibal.es, Fri, 04 May 2007 09:59:14 +0200 (not processed: message from valid local sender) X-Lookup-Warning: MAIL lookup on mjuan@cibal.es does not match 80.24.189.161 X-MDRemoteIP: 80.24.189.161 X-Return-Path: mjuan@cibal.es X-MDaemon-Deliver-To: pgsql-odbc@postgresql.org X-MDAV-Processed: mail.cibal.es, Fri, 04 May 2007 09:59:15 +0200 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.422 tagged_above=0 required=5 tests=AWL=0.286, BAYES_50=0.001, FORGED_RCVD_HELO=0.135 X-Spam-Level: X-Archive-Number: 200705/13 X-Sequence-Number: 8926 Hi, have a look to the class TParam: TParam.Clear ,TParam.Bound and ftDate Regards Miguel Juan ----- Original Message ----- From: "Terry Yapt" To: Sent: Wednesday, May 02, 2007 12:16 PM Subject: [ODBC] Setting null to date field from Delphi. >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. > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend >