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

expression cannot be used as an assignment target in SAP HANA stored procedure

$
0
0

Hi ,

 

I created sample stored procedure using scalar variables . In the stored procedure I am using INOUT parameter . Please find the below stored procedure.

 

drop procedure scalar_proc;

create procedure scalar_proc(IN OUT a bigint) LANGUAGE SQLSCRIPT AS

BEGIN

    ins_msg_proc('a before ' || :a);

    a := a + 1;

    ins_msg_proc('a after ' || :a);

END;

 

drop procedure inout_proc;

create procedure inout_proc(IN x bigint) LANGUAGE SQLSCRIPT AS

BEGIN

    init_proc();

    ins_msg_proc('x before ' || :x);

    call scalar_proc(:x);

    ins_msg_proc('x after ' || :x);

END;

 

But when I am creating the inout_proc it is throwing error like  "expression cannot be used as an assignment target: :X" .

 

Please help me how to resolve this issue.

 

Thanks & Regards,

Ramana.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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