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')}}
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
Matus Makovy <mmakovy> updated the status of jira TEIIDDES-2697 to Closed
Matus Makovy <mmakovy> updated the status of jira TEIIDDES-2697 to Reopened
Matej Kralik <mkralik> updated the status of jira TEIIDDES-2697 to Closed