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

Getting error at BEGIN while executing Funtion

$
0
0

Hi ,

I am trying to execute the function given in HANA Sql script reference.I am getting below error at step BEGIN  even the code syntax looks fine

 

CREATE FUNCTION func_addmul(x Double, y Double)

RETURNS result_add Double, result_mul Double

LANGUAGE SQLSCRIPT READS SQL DATA AS

BEGIN

     result_add := + :y

     result_mul := * :y;

END;

 

 

Error :

 

Could not execute 'CREATE FUNCTION func_addmul(x Double, y Double) RETURNS result_add Double, result_mul Double ...' in 1 ms 742 µs . SAP DBTech JDBC: [257] (at 136): sql syntax error: incorrect syntax near "BEGIN": line 4 col 2 (at pos 136)

 

 

I am using  VERSION 1.00.47.372360

 

Is there any valid reason behind this error and how to proceed? Please help


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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