pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Terry Yapt <yapt@technovell.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Setting null to date field from Delphi.
Date: Tue, 15 May 2007 09:14:52 +0200
Message-ID: <46495DEC.5000504@technovell.com> (raw)
In-Reply-To: <00f001c79152$486bab30$07c8a8c0@Miguel>
References: <463864E8.1030400@technovell.com>
	<004d01c78e22$3b731ae0$3900a8c0@Despacho>
	<463E5609.4000501@technovell.com>
	<00f001c79152$486bab30$07c8a8c0@Miguel>

Thanks but I am working with TDataSets not a TQuery. 

As I said:
Dataset.FieldByName('datefield').isnull is returning TRUE but when I do
a post to Database then PostgreSQL complaint with error: 22008.

Any another idea ?

Thanks...

>>
>>
>> Miguel Juan escribió:
>>> Hi,
>>>
>>> have a look to the class TParam:   TParam.Clear ,TParam.Bound and 
>>> ftDate
>>>
>>> Regards
>>>
>>> Miguel Juan
>>> ----- Original Message ----- From: "Terry Yapt" <yapt@technovell.com>
>>> To: <pgsql-odbc@postgresql.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
>>>>
>>>
>>>
>>>
>>
>>
>
>
>




view thread (8+ messages)  latest in thread

Message-ID: <46495DEC.5000504@technovell.com>
Permalink:  ../46495DEC.5000504@technovell.com/
Also on:    postgresql.org/message-id/46495DEC.5000504@technovell.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: yapt@technovell.com
  Subject: Re: Setting null to date field from Delphi.
  In-Reply-To: <46495DEC.5000504@technovell.com>
  References: <463864E8.1030400@technovell.com> <004d01c78e22$3b731ae0$3900a8c0@Despacho> <463E5609.4000501@technovell.com> <00f001c79152$486bab30$07c8a8c0@Miguel> <46495DEC.5000504@technovell.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox