dbTalk Databases Forums  

[BUGS] 8.0 incompatibility

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


Discuss [BUGS] 8.0 incompatibility in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gaetano Mendola
 
Posts: n/a

Default [BUGS] 8.0 incompatibility - 09-08-2004 , 05:37 PM






Hi all,
I'm observing that this piece of code doesn't work
anymore in postgres 8.0

DECLARE
quota RECORD;
BEGIN
FOR quota IN
SELECT quota
FROM foo
LOOP
....
END LOOP;
....

the table foo have the field quota

The error reported is:

ERROR: record "quota" is not assigned yet
DETAIL: The tuple structure of a not-yet-assigned record is indeterminate.

and is clear to me why. Shall not this be inserted in the release note ?



Regards
Gaetano Mendola






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

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.