dbTalk Databases Forums  

[BUGS] BUG #1562: OdbcDataAdapter.Update Fails

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1562: OdbcDataAdapter.Update Fails in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stefan Taube
 
Posts: n/a

Default [BUGS] BUG #1562: OdbcDataAdapter.Update Fails - 03-26-2005 , 11:38 PM







The following bug has been logged online:

Bug reference: 1562
Logged by: Stefan Taube
Email address: 2004 (AT) Stefan-Taube (DOT) de
PostgreSQL version: 8.0.1
Operating system: Windows XP Home
Description: OdbcDataAdapter.Update Fails
Details:

Hi,

the Update Command of an OdbcDataAdapter fails with an error saying the
Select command didnt deliver column info. Same code works with DB2, Oracle
and MySQL, so i think its a problem with the PostGre ODBC driver.
Any ideas?

Greetings,
Stefan

SQL:
Create Table Test ( ID INTEGER NOT NULL, DATA_INT INTEGER, primary
key(ID) );
Insert Into Test Values( 1, 4 );
Commit;
C#:
DS = new DataSet();
CO = new OdbcConnection("DSN=POSTGRE;UID=SCOTT;PWD=TIGER");
CO.Open();
DA = new OdbcDataAdapter("Select * from Test Where Id = 1",CO);
new OdbcCommandBuilder(DA);
DA.Fill(DS);
DS.Tables[0].Rows[0]["DATA_INT"] = 5;
DA.Update(DS); // <<-- This fails
CO.Close();

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.