Bug 1273832
| Summary: | Virtual procedure in generated dynamic VDB does not return result set | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Virtualization 6 | Reporter: | Andrej Smigala <asmigala> |
| Component: | Tooling | Assignee: | Barry LaFond <blafond> |
| Status: | CLOSED NOTABUG | QA Contact: | Andrej Smigala <asmigala> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2.0 | CC: | vhalbert |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-12-07 13:29:10 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Barry LaFond <blafond> updated the status of jira TEIIDDES-2697 to Resolved Andrej Šmigala <asmigala> updated the status of jira TEIIDDES-2697 to Reopened Using only JIRA now. Marking as closed Barry LaFond <blafond> updated the status of jira TEIIDDES-2697 to Resolved Matus Makovy <mmakovy> updated the status of jira TEIIDDES-2697 to Closed Matus Makovy <mmakovy> updated the status of jira TEIIDDES-2697 to Reopened Barry LaFond <blafond> updated the status of jira TEIIDDES-2697 to Resolved Matej Kralik <mkralik> updated the status of jira TEIIDDES-2697 to Closed |
When a VDB containing view model with a virtual procedure is exported as a dynamic VDB, the virtual procedure does not return any results. This is because the generated DDL does not contain the RETURNS clause. Generated DDL: CREATE VIRTUAL PROCEDURE testProc (p1 string(4000)) AS BEGIN SELECT XMLELEMENT(NAME test, XMLFOREST(ProcedureModel.testProc.p1 AS elem1, 'elem2' AS elem2)) AS xml_out; END; Expected DDL: CREATE VIRTUAL PROCEDURE testProc (p1 string(4000)) RETURNS TABLE ( xml_out xml) AS BEGIN SELECT XMLELEMENT(NAME test, XMLFOREST(ProcedureModel.testProc.p1 AS elem1, 'elem2' AS elem2)) AS xml_out; END; Steps to Reproduce: # import the attached project # generate a dynamic VDB from DynamicProcedureVdb # deploy and execute both VDBs # run the following query against each VDB: {{exec testProc('x')}}