-
Notifications
You must be signed in to change notification settings - Fork 186
Refcursor do not handle well sys names out of records. #902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That particular should be simple to fix but will check any other special char scenarios, but most likely a column name will have to also be escaped into xml to match that one in xmlgen. |
It looks like dbms_xmlgen adhere mostly to rules for xml names https://www.w3schools.com/xml/xml_elements.asp
except
I will add a special function to reconstruct a valid xml name |
How is the fix for this issue working? I'd like to hear pros/cons for doing/not doing it. |
We don't replace. If you look into xml generated it replace a |
Describe the bug
When a record value is selected from dual to compare using a refcursor , the oracle give the column a sys generated name. That name seems to be failing XQuery.
This happening because XMLGEN replace a nonvalid colon (':') into x003A where the dbms_desc cursor uses a proper name ":B2"
and l_compare_sql
Provide version info
Information about utPLSQL and Database version,
Information about client software
PLSQLDEVELOPER
Expected behavior
It should compare values and escape any special characters.
Example code
We will have to probably convert to unicode column_name to avoid that situation.
Workaround
Putting a column aliases resolve a problem so its not a showstopper.
The text was updated successfully, but these errors were encountered: