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