It looks like the code that handles returning a RECORD variable doesn't cope with dropped columns in the function result rowtype.
(If you instead declare rec as usno%rowtype, you get a different set of misbehaviors after adding/dropping columns, so that code path isn't perfect either :-()
Isn't it amazing, Tom, that that column dropping code that we did up for 7.3 is STILL causing bugs :D
Chris
---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings