Hi,
I have written a test procedure using development perspective. (I think only procedures created via development perspective can be debugged, kindly correct if I am wrong).
Procedure is as below -
PROCEDURE"A"."A::get_product_sales_price_st"
(INproductidNVARCHAR(10),
OUTout_tttable (prodidnvarchar(10), pricedecimal(15,2))
)
LANGUAGESQLSCRIPT
SQLSECURITYINVOKER
--DEFAULT SCHEMA
<default_schema_name>
READSSQLDATAAS
BEGIN
/*****************************
Write
your procedure logic
*****************************/
declarev_l1nvarchar(2) := :productid;
out_tt = select :v_l1asprodid, 1.5 aspricefromdummy;
END;
When I call this procedure in SQL console, I can see the output.
call "A"."A::get_product_sales_price_st"('A',?)
But when I debug procedure in debug perspective, it shows me values of input parameters, but NOT of Output.
Any idea, why debugger not showing value of out_tt and why it is terminating at the end?
Thanks for the reply.
Best Regards,
Saurabh