pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Shachar Shemesh <psql@shemesh.biz>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ODBC Open cursors on views
Date: Mon, 18 Aug 2003 19:11:31 +0900
Message-ID: <3F40A653.2B8091AF@tpf.co.jp> (raw)
References: <1060772327.3f3a19e7a647d@latenight.fiasco.org.il>
	<3F40A3B8.102750B9@tpf.co.jp>
	<1061201029.3f40a4851b5a8@latenight.fiasco.org.il>

Shachar Shemesh wrote:
> 
> Quoting Hiroshi Inoue <Inoue@tpf.co.jp>:
> 
> > 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/



view thread (10+ messages)  latest in thread

Message-ID: <3F40A653.2B8091AF@tpf.co.jp>
Permalink:  ../3F40A653.2B8091AF@tpf.co.jp/
Also on:    postgresql.org/message-id/3F40A653.2B8091AF@tpf.co.jp

 · 

reply

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: Inoue@tpf.co.jp, psql@shemesh.biz
  Subject: Re: ODBC Open cursors on views
  In-Reply-To: <3F40A653.2B8091AF@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>

* 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