BUG #1562: OdbcDataAdapter.Update Fails

Поиск
Список
Период
Сортировка
От Stefan Taube
Тема BUG #1562: OdbcDataAdapter.Update Fails
Дата
Msg-id 20050325074712.17D68F0FD4@svr2.postgresql.org
обсуждение исходный текст
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      1562
Logged by:          Stefan Taube
Email address:      2004@Stefan-Taube.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();

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Dirk Raetzel"
Дата:
Сообщение: BUG #1563: wrong week returnded by date_trunc('week', ...)
Следующее
От: "Karl O. Pinc"
Дата:
Сообщение: BUG #1565: SRPM does not rebuild due to krb5.h