dbTalk Databases Forums  

[BUGS] BUG #2206: error on declare cursor after a close cursor

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2206: error on declare cursor after a close cursor in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RIMBAUD Christophe
 
Posts: n/a

Default [BUGS] BUG #2206: error on declare cursor after a close cursor - 01-24-2006 , 09:41 AM







The following bug has been logged online:

Bug reference: 2206
Logged by: RIMBAUD Christophe
Email address: christophe.rimbaud (AT) bull (DOT) net
PostgreSQL version: 8.1.2
Operating system: Linux Rh3 IA 64
Description: error on declare cursor after a close cursor
Details:

error when i declare a cursor after closing it .
In psql 7.2 it's OK but not in 8.
exemple :

corio=# begin ;
DEBUG: StartTransactionCommand
DEBUG: StartTransaction
DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR,
xid/subid/cid: 50052/1/0, nestlvl: 1, children: <>
DEBUG: ProcessUtility
DEBUG: CommitTransactionCommand
BEGIN
corio=# close PRUTCURSNOLOCK;
DEBUG: StartTransactionCommand
DEBUG: ProcessUtility
ERROR: cursor "prutcursnolock" does not exist
corio=# declare PRUTCURSNOLOCK cursor for select * from PRUT where
UTILCOD >= 'ADMIN ' and PRUTCOLLCOD >= ' ' and SECUMDP >= '
';
DEBUG: StartTransactionCommand
ERROR: current transaction is aborted, commands ignored until end of
transaction block
corio=#

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2206: error on declare cursor after a close cursor - 01-24-2006 , 09:50 AM






"RIMBAUD Christophe" <christophe.rimbaud (AT) bull (DOT) net> writes:
Quote:
corio=# begin ;
BEGIN
corio=# close PRUTCURSNOLOCK;
ERROR: cursor "prutcursnolock" does not exist
This is an intentional change. Sorry; you're going to have to fix your
application to not do that.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.