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 50EC3D1B89A for ; Tue, 19 Aug 2003 07:37:14 -0300 (ADT) 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 08727-10 for ; Tue, 19 Aug 2003 07:37:06 -0300 (ADT) Received: from latenight.fiasco.org.il (latenight.fiasco.org.il [192.117.122.39]) by svr1.postgresql.org (Postfix) with SMTP id 92B52D1B56B for ; Tue, 19 Aug 2003 07:37:01 -0300 (ADT) Received: (qmail 22138 invoked by uid 33); 19 Aug 2003 10:36:53 -0000 To: Hiroshi Inoue Subject: Re: ODBC Open cursors on views Message-ID: <1061289411.3f41fdc3c9354@latenight.fiasco.org.il> Date: Tue, 19 Aug 2003 13:36:51 +0300 (IDT) From: sun@consumer.org.il Cc: Shachar Shemesh , pgsql-odbc@postgresql.org References: <1060772327.3f3a19e7a647d@latenight.fiasco.org.il> <3F40A3B8.102750B9@tpf.co.jp> <1061201029.3f40a4851b5a8@latenight.fiasco.org.il> <3F40A653.2B8091AF@tpf.co.jp> <1061202388.3f40a9d443f29@latenight.fiasco.org.il> <3F41AE6B.F78F928A@tpf.co.jp> In-Reply-To: <3F41AE6B.F78F928A@tpf.co.jp> 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: 62.219.50.195 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/48 X-Sequence-Number: 3168 Quoting Hiroshi Inoue : > > > Shachar Shemesh wrote: > > [snip] > > > If more than one table participates in the view, who's CTID do I need > to get? Is > > it enough to take one of the tables at random? > Hi, You said that static readonly cursors worked for you. I'm trying the following code, without success: UpdateData(TRUE); CString sql="select * from \"ACCOUNTLEDGER\""; try { if( m_crs==NULL ) { m_db.OpenEx(NULL); m_crs=new CRecordset( &m_db ); } m_crs->Open(CRecordset::snapshot, sql, CRecordset::readOnly ); RefreshData(); } catch( CDBException *cdbexcept ) { MessageBox( cdbexcept->m_strError, "SQL error", MB_ICONEXCLAMATION ); } I get the same error (attribute "ctid" not found). Am I doing something wrong? Shachar