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