Cursor case-sensitivity - Mailing list pgsql-bugs

From Key88 SF
Subject Cursor case-sensitivity
Date
Msg-id F724uC0PcewUiz9xWyh0000006c@hotmail.com
Whole thread Raw
Responses Re: Cursor case-sensitivity  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Not sure if this is known or not, but apparently cursors names are not
appropriately case-lowered when dealing with functions that return cursors.

Using the example straight from the documentation at
http://developer.postgresql.org/docs/postgres/plpgsql-cursors.html:

This works:

BEGIN;
SELECT reffunc('funccursor');
FETCH ALL IN funccursor;
COMMIT;

But this doesn't work:
BEGIN;
SELECT reffunc('funcCursor');
FETCH ALL IN funcCursor;
COMMIT;

This 2nd one gives a warning in the log of:
WARNING:  PerformPortalFetch: portal "funccursor" not found.


-Dave

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: New hashed IN code ignores distinctiveness of subquery
Next
From: Tom Lane
Date:
Subject: Re: Cursor case-sensitivity