Hello I am having an issue using oraext:query-database
Error : Exception is thrown because the from-spec at line 741 is evaluated to multiple node
I am assigning
concat("select idwell as idwell from wv90.wvzonestatus where idwell =", ora:addQuotes($idwell), "and idrecparent=" , ora:addQuotes($idrec)," and status = 'PR' and upper(fluiddes) like '%GAS%' and upper(methodprod) like '%FLOWING%' and upper(typ) like '%PRODUCER%'")
to the variable $SQL
then it breaks when i try to do this
oraext:query-database(bpws:getVariableData('SQL') ,false(),false(),"jdbc/WVODI_Datasource")
and assign to a variable called $CallDB
Please advise what I am doing wrong and how to handle multiple rows returned from that SQL query.