X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 86B28D1BB92 for ; Mon, 18 Aug 2003 10:11:04 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 69864-02 for ; Mon, 18 Aug 2003 07:10:56 -0300 (ADT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id 3B212D1B56B for ; Mon, 18 Aug 2003 07:10:53 -0300 (ADT) Received: (qmail 10703 invoked from network); 18 Aug 2003 10:10:54 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 18 Aug 2003 10:10:54 -0000 Received: from tpf.co.jp (3d_note1 [126.0.1.61]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id TAA01174; Mon, 18 Aug 2003 19:10:53 +0900 (JST) Message-ID: <3F40A653.2B8091AF@tpf.co.jp> Date: Mon, 18 Aug 2003 19:11:31 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Shachar Shemesh Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC Open cursors on views References: <1060772327.3f3a19e7a647d@latenight.fiasco.org.il> <3F40A3B8.102750B9@tpf.co.jp> <1061201029.3f40a4851b5a8@latenight.fiasco.org.il> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/28 X-Sequence-Number: 3148 Shachar Shemesh wrote: > > Quoting Hiroshi Inoue : > > > Shachar Shemesh wrote: > > > > > > Hi all, > > > > > > When trying to open a bidirectional cursor on a query that uses a view > > in the > > > from (i.e. - select * from "viewname"), the odbc driver returns an > > error > > > "Attribute ctid not found". The problem does not happen when I open a > > forward > > > only cursor. > > > > Is the bidirectional cursor read-only ? > > > I tried it both ways - neither worked. The static read-only cursor on views works here. > This is a company I'm helping to add a backend to postgresql (they currently > support Oracle, MSsql and Access). They occasionally also do updates on views > (rare), so I guess that would come at some stage as well. Updatable cursors in psqlodbc needs CTID and OID columns. If you create views with CTID and OID columns, you would probably get updatable bidirectinal cursors on the views. CREATE VIEW a_view as select ctid, oid, ... regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/