HI All,
I have a Scalar UDF, when I try use this in a procedure I got this error in activation:
SqlScript: Could not derive table type for variable "T_OUT" (SQL error: insufficient privilege: Not authorized)
It's work fine on a Select in SQL Console.
That's is my UDF and my procedure:
CREATE FUNCTION teste_func(IN v integer) RETURNS r integer
LANGUAGE SQLSCRIPT READS SQL DATA AS
BEGIN
r := v * 10;
END;
/********* Begin Procedure Script ************/
BEGIN
t_out = select teste_func(10) as NETWR, 10 as menge from dummy;
END;
/********* End Procedure Script ************/
What's wrong? I really can't use Scalar UDF in procedures?
Thank you