pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: alexandre :: aldeia digital <alepaes@aldeiadigital.com.br>
To: pgsql-odbc@postgresql.org
Subject: Declare/Fetch with For Update
Date: Tue, 10 Sep 2002 11:21:13 -0300 (BRT)
Message-ID: <4390.200.225.214.1.1031667673.squirrel@webmail.ad2.com.br> (raw)

Hi,

I use psqlodbc-07_02_0002 and the query:

select x,y from ZZZ for update of ZZZ

Will be trasformed in :

declare SQL_CURxxx cursor for select x,y from ZZZ OF ZZZ

When I use declare/fetch, causing an error "near OF" because
the supress of 'for update'.
The ODBC driver may be bypass the use of declare/fetch when
the select have the 'for update' clause (or others wich update
rows), or I miss something ?
I need the 'for update', but the optimization of declare/fetch
are incredible in other parts of my application.

Thank“s all

Alexandre






view thread (2+ messages)  latest in thread

Message-ID: <4390.200.225.214.1.1031667673.squirrel@webmail.ad2.com.br>
Permalink:  ../4390.200.225.214.1.1031667673.squirrel@webmail.ad2.com.br/
Also on:    postgresql.org/message-id/4390.200.225.214.1.1031667673.squirrel@webmail.ad2.com.br

 · 

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: alepaes@aldeiadigital.com.br
  Subject: Re: Declare/Fetch with For Update
  In-Reply-To: <4390.200.225.214.1.1031667673.squirrel@webmail.ad2.com.br>
  References: <4390.200.225.214.1.1031667673.squirrel@webmail.ad2.com.br>

* 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