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 66763D1B524 for ; Wed, 13 Aug 2003 10:58:59 +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 02838-06 for ; Wed, 13 Aug 2003 07:57:26 -0300 (ADT) Received: from latenight.fiasco.org.il (latenight.fiasco.org.il [192.117.122.39]) by svr1.postgresql.org (Postfix) with SMTP id 6A2BFD1B53A for ; Wed, 13 Aug 2003 07:58:47 -0300 (ADT) Received: (qmail 6123 invoked by uid 33); 13 Aug 2003 10:58:47 -0000 To: pgsql-odbc@postgresql.org Subject: ODBC Open cursors on views Message-ID: <1060772327.3f3a19e7a647d@latenight.fiasco.org.il> Date: Wed, 13 Aug 2003 13:58:47 +0300 (IDT) From: Shachar Shemesh MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.6 X-Originating-IP: 192.114.66.56 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/19 X-Sequence-Number: 3139 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. It sounds to me like the ODBC driver uses the ctid in order to "find it's way around". Views don't have that field, and hence the problem. Note: that explanation was pure guesswork. My questions are: 1. Is the above explanation correct? 2. Is this problem solveable through the ODBC driver? Many thanks, Shachar