Unix Technical Forum

[ psqlodbc-Bugs-1001827 ] Error when updating a TIMESTAMP column with NULL using ADODB

This is a discussion on [ psqlodbc-Bugs-1001827 ] Error when updating a TIMESTAMP column with NULL using ADODB within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Bugs item #1001827, was opened at 2007-02-05 10:10 You can respond by visiting: http://pgfoundry.org/tracker/?func=d...oup_id=1000125 Category: None Group: None Status: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 05:14 PM
noreply@pgfoundry.org
 
Posts: n/a
Default [ psqlodbc-Bugs-1001827 ] Error when updating a TIMESTAMP column with NULL using ADODB

Bugs item #1001827, was opened at 2007-02-05 10:10
You can respond by visiting:
http://pgfoundry.org/tracker/?func=d...oup_id=1000125

Category: None
Group: None
Status: Open
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: Greg Campbell (grasshopper62)
Date: 2007-03-22 12: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-21 20:18

Message:
Hmm it works here.
Could you attach the Mylog output ?

regards,
Hiroshi Inoue

----------------------------------------------------------------------

Comment By: Nobody (None)
Date: 2007-03-21 05: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 02:44

Message:
PLease try the snapshot dll at
http://www.geocities.jp/inocchichich...dbc/index.html
..

regards
Hiroshi Inoue

----------------------------------------------------------------------

You can respond by visiting:
http://pgfoundry.org/tracker/?func=d...oup_id=1000125

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:27 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com