|
|
Sponsor |
Recordset not updatable: msg#00040db.postgresql.odbc
Hi, after trying around for two evenings and browsing the usenet in vain, I hope that someone reading this can help me with the following problem: I use postgresql 7.3.4 on a linux box and the postgresql ODBC driver version 7.3.200 on a windows 2k box. My program is written in Delphi 6 PE with a self-made derivative of KADAOPE for database access using DAO. Reading and writing Access databases using DAO recordsets with Jet workspace works fine. Reading Postgres Databases using ODBC workspace works fine too. The postgresql ODBC driver options are the default values. Problem: I cannot get an updatable recordset. CursorDriver is dbUseDefaultCursor. recordset is opened with dbOpenDynaset Example: DAORecordSet:= FDAODatabase.CoreDatabase.OpenRecordset("SELECT * FROM mytable where id1=4711", dbOpenDynaset). mytable has a compound primary key (id1,id2). DAORecordSet.Updatable is FALSE, and, consequently, DAORecordSet.Edit fails with a write protection error. I then tried and changed the parameters from dbOopenDynaset to dbOpenDynamic, 0, dbOptimisticValue. But this makes DAORecordSet.MoveLast fail with "Illegal operation" while the recordset still is not updatable. After updating the driver to version 7.3.208 from http://www.geocities.jp/inocchichichi/psqlodbc/, MoveLast fails with an Access violation error at ... in psqlodbc.dll. Is there anybody out there who got psqlodbc to open updatable recordsets via DAO? Any hints? Many thanks in advance! Boris ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ERROR: column "ctid" does not exist, Jeff Eckermann |
|---|---|
| Next by Date: | Newbie odbc simple select maybe cache problem, Marcin Miedziejko |
| Previous by Thread: | ERROR: column "ctid" does not exist, George T. Gibson |
| Next by Thread: | Newbie odbc simple select maybe cache problem, Marcin Miedziejko |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|