Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 5B543B5DE93 for ; Tue, 1 Nov 2011 21:09:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 01573-02-9 for ; Wed, 2 Nov 2011 00:09:09 +0000 (UTC) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by mail.postgresql.org (Postfix) with ESMTP id 6E5F9B5E0D9 for ; Tue, 1 Nov 2011 21:05:37 -0300 (ADT) Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by pgfoundry.org (Postfix) with ESMTP id 2E63D532E3B1 for ; Wed, 2 Nov 2011 00:05:37 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 97315-04; Wed, 2 Nov 2011 00:05:25 +0000 (UTC) Received: by pgfoundry.org (Postfix, from userid 80) id 0AF77532D89E; Wed, 2 Nov 2011 00:05:30 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1001827 ] Error when updating a TIMESTAMP column with NULL using ADODB Content-type: text/plain; charset=UTF-8 Message-Id: <20111102000530.0AF77532D89E@pgfoundry.org> Date: Wed, 2 Nov 2011 00:05:30 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.101 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.201 X-Spam-Level: X-Archive-Number: 201111/4 X-Sequence-Number: 10722 Bugs item #1001827, was opened at 2007-02-05 15:10 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1001827&group_id=1000125 Category: None Group: None >Status: Closed Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Error when updating a TIMESTAMP column with NULL using ADODB Initial Comment: We are having problems setting TIMESTAMP fields to "Null" using ADODB (from Visual Basic 6) The attached example doesn't work, it reports an invalid date/time-value. Setting the field to "null" with an SQL-statement works ("update ..."). It doesn't work with 08_02_0200's Unicode version. The ANSI version works as expected. The server is running under Linux in version 8.2.0, the clients are running under Windows XP SP2. ---------------------------------------------------------------------- Comment By: Mark Junker (mjcoder) Date: 2007-04-19 07:41 Message: It can be closed. It works for me now. Thank you very much for your effort. Kind regards, Mark ---------------------------------------------------------------------- Comment By: Mark Junker (mjcoder) Date: 2007-03-28 15:55 Message: I tried psqlODBC from your website which have a date from 2007-03-23 and the problem still exists. I'll attach the logs that were created by the test. ---------------------------------------------------------------------- Comment By: Greg Campbell (grasshopper62) Date: 2007-03-23 15:50 Message: Sorry for the confusion, I suggested trying conn.Execute but I am not the anonymous user who submitted the question. I was just jumped into the thread. I guess that user who submited teh TestPgOdbc will have to get back to with his MyLog output. I can say that he was using a connected recordset/cursor technique instead of a disconnected one. Different driver version seem to have trouble with that. ---------------------------------------------------------------------- Comment By: Hiroshi Inoue (hinoue) Date: 2007-03-23 02:56 Message: > Instead of recordset.Update, does connection.Execute work any better? Maybe but please note your test program TestPgOdbc.exe works well on my machine. I'd like to know what's happening on your machine. regards, Hiroshi Inoue ---------------------------------------------------------------------- Comment By: Greg Campbell (grasshopper62) Date: 2007-03-22 16:33 Message: Instead of recordset.Update, does connection.Execute work any better? e.g. conn.Execute "UPDATE SET my_ts_field=NULL" ---------------------------------------------------------------------- Comment By: Hiroshi Inoue (hinoue) Date: 2007-03-22 00:18 Message: Hmm it works here. Could you attach the Mylog output ? regards, Hiroshi Inoue ---------------------------------------------------------------------- Comment By: Nobody (None) Date: 2007-03-21 09:52 Message: I just downloaded the new drivers (2007-03-21) and repeated the test. Now I get an error "-2147217887". I'll try to translate the error message: "Error in a OLE DB action that consists of multiple steps.". The error occurs when the test application tries to set the field value ("objRs.Fields(txtTableCol.Text) = Null"). ---------------------------------------------------------------------- Comment By: Hiroshi Inoue (hinoue) Date: 2007-02-09 07:44 Message: PLease try the snapshot dll at http://www.geocities.jp/inocchichichi/psqlodbc/index.html . regards Hiroshi Inoue ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1001827&group_id=1000125