From: Shachar Shemesh <psql@shemesh.biz>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ODBC Open cursors on views
Date: Tue, 19 Aug 2003 15:09:05 +0300
Message-ID: <3F421361.4040106@shemesh.biz> (raw)
In-Reply-To: <3F41AE6B.F78F928A@tpf.co.jp>
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>
Quoting Hiroshi Inoue <Inoue@tpf.co.jp>:
>
>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: psql@shemesh.biz
Subject: Re: ODBC Open cursors on views
In-Reply-To: <3F421361.4040106@shemesh.biz>
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> <3F421361.4040106@shemesh.biz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox