I believe this is a bug or design oversight from back in the ACS 4.2 days.
The pl/sql functions accept a table_name parameter, but it clearly throws an error if table_name is not null. That does not make sense.
I have a set of changes that allow passing in table name to the function to allow passing in the table name. I can find those and make them available somewhere, if anyone in interested in trying to add that back into OpenACS core.