Skip to content

[plsql] Support XMLTABLE functions #1510

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

Closed
adangel opened this issue Dec 7, 2018 · 0 comments · Fixed by #1685
Closed

[plsql] Support XMLTABLE functions #1510

adangel opened this issue Dec 7, 2018 · 0 comments · Fixed by #1685
Assignees
Labels
an:enhancement An improvement on existing features / rules
Milestone

Comments

@adangel
Copy link
Member

adangel commented Dec 7, 2018

Oracle allows to execute SQL like queries against a XML document using XMLTABLE and other related functions:
https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/XMLTABLE.html#GUID-C4A32C58-33E5-4CF1-A1FE-039550D3ECFA

Code Sample demonstrating the issue:

SELECT warehouse_name warehouse,
   warehouse2."Water", warehouse2."Rail"
   FROM warehouses,
   XMLTABLE('/Warehouse'
      PASSING warehouses.warehouse_spec
      COLUMNS 
         "Water" varchar2(6) PATH 'WaterAccess',
         "Rail" varchar2(6) PATH 'RailAccess') 
      warehouse2;

Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]

@adangel adangel added the an:enhancement An improvement on existing features / rules label Dec 7, 2018
@adangel adangel self-assigned this Feb 17, 2019
adangel added a commit to adangel/pmd that referenced this issue Mar 29, 2019
adangel added a commit to adangel/pmd that referenced this issue Mar 29, 2019
@adangel adangel added this to the 6.13.0 milestone Mar 29, 2019
@adangel adangel added the has:pr label Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
an:enhancement An improvement on existing features / rules
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant