Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 4A4649FB829 for ; Tue, 15 May 2007 11:16:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 43272-03 for ; Tue, 15 May 2007 11:16:35 -0300 (ADT) X-Greylist: delayed 07:02:01.166176 by SQLgrey-1.7.5 Received: from technovell.com (219.Red-213-97-5.staticIP.rima-tde.net [213.97.5.219]) by postgresql.org (Postfix) with ESMTP id 1B4209FB5B1 for ; Tue, 15 May 2007 11:16:40 -0300 (ADT) 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); Tue, 15 May 2007 16:16:34 +0200 Message-ID: <4649C0D7.901@technovell.com> Date: Tue, 15 May 2007 16:16:55 +0200 From: Terry Yapt Reply-To: pgsql-odbc@postgresql.org User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: Setting null to date field from Delphi. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/49 X-Sequence-Number: 8962 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" > > > >>> 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 > > >>>> > > >>> > > >>> > > >>> > > >> > > >> > > > > > > > > > > > > > > > ---------------------------(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