Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Not authorized error using sequence in procedure

$
0
0

Hello Patrick,

 

this work perfect on my system. I just tried following code, and it is no problem at all with it.

 

 

CREATE SEQUENCE test;

 

DROP PROCEDURE "MySchema"."MySchema::test_SEQ";

CREATE PROCEDURE "MySchema"."MySchema::test_SEQ" ( )

  LANGUAGE SQLSCRIPT

  SQL SECURITY DEFINER AS         

BEGIN

  insert into "MySchema"."Table" values("MySchema".test.NEXTVAL,'X');

 

 

END;

 

 

 

CALL "MySchema"."MySchema::test_SEQ";

 

Have you created the procedure with your current user?

 

You could set the database trace level of INDEXSERVER\authentication to INFO to see what priviliege is missing. To do so, ensure the "Show All Components" is selected.

 

Best regards

Patrik


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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