on 2019 Feb 07 3:30 AM
Hi All,
SQL AnyWhere 17.0.9.4913 There is a table "dba.TEST1". User "User1" has no rights to insert data into this table. There is a stored procedure "Proc1". The user "User1" has the right to execute this procedure..
procedure dba.Proc1 begin select GET_IDENTITY('dba.TEST1') as nKEY, 10 as F1 end
When calling this procedure, I get the error message: "You do not have permissions to insert into "TEST1"".
If the procedure is slightly changed, then there is no error.
procedure dba.Proc1 begin declare nID integer; set nID = GET_IDENTITY('dba.TEST1'); select nID as nKEY, 10 as F1 end
Question: Why does an error occur in the first case ? After all, the user has the rights to the procedure, or the request at the end of the procedure does not fall under these rights ? Maybe this is a server error ?
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.