Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Can't Use UDF in Procedures?

$
0
0

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


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>