Re: Setting null to date field from Delphi.

From: "Miguel Juan" <mjuan(at)cibal(dot)es>
To: "Terry Yapt" <yapt(at)technovell(dot)com>, <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Setting null to date field from Delphi.
Date: 2007-05-04 08:00:06
Message-ID: 004d01c78e22$3b731ae0$3900a8c0@Despacho
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi,

have a look to the class TParam: TParam.Clear ,TParam.Bound and ftDate

Regards

Miguel Juan
----- Original Message -----
From: "Terry Yapt" <yapt(at)technovell(dot)com>
To: <pgsql-odbc(at)postgresql(dot)org>
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
>

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Peter Eisentraut 2007-05-04 09:48:53 Re: psqlODBC 08.02.0300 doesn't compile
Previous Message noreply 2007-05-04 02:25:29 [ psqlodbc-Bugs-1003103 ] copy_and_convert_field(...) destroys bind info for wide char varchar columns