FOR UPDATE is not allowed in this context

From: "Postgres El Mejor" <postgres99(at)hotmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: FOR UPDATE is not allowed in this context
Date: 2001-02-21 00:16:46
Message-ID: F76sa7qEqlehFvHkQFY00003779@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Greetings:

When precompiling the following sentence the precompiler shows the message
"FOR UPDATE is not allowed in this context".

EXEC SQL SELECT camp_1 INTO :n1 WHERE llave = :var_llave FOR UPDATE;

It seems to be a problem with the host variables because it precompiles
well
the following sentence:

EXEC SQL SELECT camp_1 INTO :n1 WHERE llave = 'abcd' FOR UPDATE;

Thanks in advance for your help,

-------------------------------------------------------------------------
Jhon Orellana
Quito - Ecuador
South America

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2001-02-21 00:58:58 Re: FOR UPDATE is not allowed in this context
Previous Message Postgres El Mejor 2001-02-21 00:01:14 FOR UPDATE is not allowed in this context