X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1696BD1C9E1 for ; Thu, 11 Mar 2004 22:22:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 89581-01 for ; Thu, 11 Mar 2004 18:22:34 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id CE08BD1C9DB for ; Thu, 11 Mar 2004 18:22:27 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i2BMMR1Y038914 for ; Thu, 11 Mar 2004 22:22:27 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i2BLqsLS033821 for pgsql-odbc@postgresql.org; Thu, 11 Mar 2004 21:52:54 GMT From: omega@online.de (Dr. Boris Neubert) X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: Recordset not updatable Date: 11 Mar 2004 13:53:01 -0800 Organization: http://groups.google.com Lines: 41 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/45 X-Sequence-Number: 3847 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