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 64FBDD1B961 for ; Tue, 19 Aug 2003 09:09:15 -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 34084-06 for ; Tue, 19 Aug 2003 09:09:07 -0300 (ADT) Received: from smtp1.actcom.net.il (smtp.actcom.co.il [192.114.47.13]) by svr1.postgresql.org (Postfix) with ESMTP id E4337D1B945 for ; Tue, 19 Aug 2003 09:09:03 -0300 (ADT) Received: from shemesh.biz (line102-130.adsl.actcom.co.il [192.117.102.130]) by smtp1.actcom.net.il (8.12.8/8.12.8) with ESMTP id h7JCEGf0010674 for ; Tue, 19 Aug 2003 15:14:17 +0300 Message-ID: <3F421361.4040106@shemesh.biz> Date: Tue, 19 Aug 2003 15:09:05 +0300 From: Shachar Shemesh User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030714 Debian/1.4-2 X-Accept-Language: en, he MIME-Version: 1.0 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> <3F40A653.2B8091AF@tpf.co.jp> <1061202388.3f40a9d443f29@latenight.fiasco.org.il> <3F41AE6B.F78F928A@tpf.co.jp> In-Reply-To: <3F41AE6B.F78F928A@tpf.co.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/38 X-Sequence-Number: 3158 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