pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedSetting null to date field from Delphi.
8+ messages / 5 participants
[nested] [flat]
* Setting null to date field from Delphi.
@ 2007-05-02 10:16 Terry Yapt <yapt@technovell.com>
2007-05-04 08:00 ` Re: Setting null to date field from Delphi. Miguel Juan <mjuan@cibal.es>
0 siblings, 1 reply; 8+ messages in thread
From: Terry Yapt @ 2007-05-02 10:16 UTC (permalink / raw)
To: pgsql-odbc
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.
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Setting null to date field from Delphi.
2007-05-02 10:16 Setting null to date field from Delphi. Terry Yapt <yapt@technovell.com>
@ 2007-05-04 08:00 ` Miguel Juan <mjuan@cibal.es>
2007-05-15 07:11 ` Re: Setting null to date field from Delphi. Terry Yapt <yaptNO@teSPchAMnovell.com>
2007-05-15 07:14 ` Re: Setting null to date field from Delphi. Terry Yapt <yapt@technovell.com>
0 siblings, 2 replies; 8+ messages in thread
From: Miguel Juan @ 2007-05-04 08:00 UTC (permalink / raw)
To: Terry Yapt <yapt@technovell.com>; 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@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
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Setting null to date field from Delphi.
2007-05-02 10:16 Setting null to date field from Delphi. Terry Yapt <yapt@technovell.com>
2007-05-04 08:00 ` Re: Setting null to date field from Delphi. Miguel Juan <mjuan@cibal.es>
@ 2007-05-15 07:11 ` Terry Yapt <yaptNO@teSPchAMnovell.com>
1 sibling, 0 replies; 8+ messages in thread
From: Terry Yapt @ 2007-05-15 07:11 UTC (permalink / raw)
To: pgsql-odbc
Thanks but I am working with TDataSets.
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" wrote:
> 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
> >
>
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 6: explain analyze is your
> friend
--
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Setting null to date field from Delphi.
2007-05-02 10:16 Setting null to date field from Delphi. Terry Yapt <yapt@technovell.com>
2007-05-04 08:00 ` Re: Setting null to date field from Delphi. Miguel Juan <mjuan@cibal.es>
@ 2007-05-15 07:14 ` Terry Yapt <yapt@technovell.com>
1 sibling, 0 replies; 8+ messages in thread
From: Terry Yapt @ 2007-05-15 07:14 UTC (permalink / raw)
To: pgsql-odbc
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
>>>>
>>>
>>>
>>>
>>
>>
>
>
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Setting null to date field from Delphi.
@ 2007-05-15 14:16 Terry Yapt <yapt@technovell.com>
2007-05-15 14:39 ` Re: Setting null to date field from Delphi. Raymond O'Donnell <rod@iol.ie>
0 siblings, 1 reply; 8+ messages in thread
From: Terry Yapt @ 2007-05-15 14:16 UTC (permalink / raw)
To: pgsql-odbc
Hello Alvaro and thanks for your answer...
I am using PostgreSQL 8.2.4 DB and I don't know if using previous odbc
versions is an option. (ie: Schemas might be a problem I think).
I agree with you that odbc 8.x.xx has a lot of "rare behaviours" and I
am seriously thinking to get off odbc and buy direct access components
VCL from MicroOlap or something similar:
MicroOlap: http://www.microolap.com/products/connectivity/postgresdac/
I am spending more time checking behaviours and looking for workarounds
than developing software itself.
Do you know any other direct postgresql access for VCL besides
postgresDAC ?
Thanks.
Greetings from Spain...
ALVARO ARCILA escribió:
>
> Hi,
>
> Actually I'm working with Delphi accessing postgresql and I've had
> some kind of problems with recents versions of postgresql odbc....
> I've got the better results with version 7.03.100 ... maybe you can
> switch to this version and try ...
>
> I hope this would help you,
>
> Alvaro Arcila
>
>
> ------------------------------------------------------------------------
>
> > Date: Tue, 15 May 2007 09:14:52 +0200
> > From: yapt@technovell.com
> > To: pgsql-odbc@postgresql.org
> > Subject: Re: [ODBC] Setting null to date field from Delphi.
> >
> > 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
> > >>>>
> > >>>
> > >>>
> > >>>
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: Don't 'kill -9' the postmaster
>
>
> ------------------------------------------------------------------------
> ¡Ya está aquí Windows Live Spaces! Ahora podrás crear fácilmente tu
> propio sitio Web. Pruébalo <http://spaces.live.com/signup.aspx;
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Setting null to date field from Delphi.
2007-05-15 14:16 Re: Setting null to date field from Delphi. Terry Yapt <yapt@technovell.com>
@ 2007-05-15 14:39 ` Raymond O'Donnell <rod@iol.ie>
2007-05-15 14:42 ` Re: Setting null to date field from Delphi. Raymond O'Donnell <rod@iol.ie>
2007-05-25 11:15 ` Re: Setting null to date field from Delphi. Ben Trewern <ben.trewern@mowlem.com>
0 siblings, 2 replies; 8+ messages in thread
From: Raymond O'Donnell @ 2007-05-15 14:39 UTC (permalink / raw)
To: pgsql-odbc
On 15/05/2007 15:16, Terry Yapt wrote:
> Do you know any other direct postgresql access for VCL besides
> postgresDAC ?
I use dbExpress and the Vita Voom driver for PostgreSQL
(www.vitavoom.com) - it's a commercial driver but reasonably proced, and
works very well.
Ray.
---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Setting null to date field from Delphi.
2007-05-15 14:16 Re: Setting null to date field from Delphi. Terry Yapt <yapt@technovell.com>
2007-05-15 14:39 ` Re: Setting null to date field from Delphi. Raymond O'Donnell <rod@iol.ie>
@ 2007-05-15 14:42 ` Raymond O'Donnell <rod@iol.ie>
1 sibling, 0 replies; 8+ messages in thread
From: Raymond O'Donnell @ 2007-05-15 14:42 UTC (permalink / raw)
To: rod@iol.ie; +Cc: pgsql-odbc
On 15/05/2007 15:39, Raymond O'Donnell wrote:
> reasonably proced
Oops - that should have been "priced". :-)
Ray.
---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Setting null to date field from Delphi.
2007-05-15 14:16 Re: Setting null to date field from Delphi. Terry Yapt <yapt@technovell.com>
2007-05-15 14:39 ` Re: Setting null to date field from Delphi. Raymond O'Donnell <rod@iol.ie>
@ 2007-05-25 11:15 ` Ben Trewern <ben.trewern@mowlem.com>
1 sibling, 0 replies; 8+ messages in thread
From: Ben Trewern @ 2007-05-25 11:15 UTC (permalink / raw)
To: pgsql-odbc
Try ZeosLib here: http://forum.zeoslib.net.ms/
They work well (with a few quirks) and are LGPL free. Use the 6.6.1-beta
versions as they seem to be more stable than a beta.
Regards,
Ben
""Raymond O'Donnell"" <rod@iol.ie> wrote in message
news:4649C620.7060500@iol.ie...
> On 15/05/2007 15:16, Terry Yapt wrote:
>
>> Do you know any other direct postgresql access for VCL besides
>> postgresDAC ?
>
> I use dbExpress and the Vita Voom driver for PostgreSQL
> (www.vitavoom.com) - it's a commercial driver but reasonably proced, and
> works very well.
>
> Ray.
>
> ---------------------------------------------------------------
> Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
> rod@iol.ie
> ---------------------------------------------------------------
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
> http://www.postgresql.org/about/donate
>
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2007-05-25 11:15 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-05-02 10:16 Setting null to date field from Delphi. Terry Yapt <yapt@technovell.com>
2007-05-04 08:00 ` Miguel Juan <mjuan@cibal.es>
2007-05-15 07:11 ` Terry Yapt <yaptNO@teSPchAMnovell.com>
2007-05-15 07:14 ` Terry Yapt <yapt@technovell.com>
2007-05-15 14:16 Re: Setting null to date field from Delphi. Terry Yapt <yapt@technovell.com>
2007-05-15 14:39 ` Raymond O'Donnell <rod@iol.ie>
2007-05-15 14:42 ` Raymond O'Donnell <rod@iol.ie>
2007-05-25 11:15 ` Ben Trewern <ben.trewern@mowlem.com>
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