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

Exception Handling

$
0
0

Hello,

I have the following procedure and I want to have access to the table within the Exit Handler.

But it seems that the in_msg table is not accessible within the exception case.

 

 

create procedure MessageSplitter_9_gen ( )
as
begin
 DECLARE EXIT HANDLER FOR SQLEXCEPTION
 Begin  UPDATE Message_9_MSG m SET FAULT = 1 where m.message_id = in_msg.message_id;
 end; 
 in_msg = select * from Message_9_msg;
...
end;

Hana Studio can not create this procedure and raises this message: '... invalid identifier: IN_MSG: ...'

Is there any trick to deal with that issue?

 

Regards Marvin


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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