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

Scalar Output Parameter for Repository Stored Procedures

$
0
0

Hi,

 

I want to use dynamic security in my analytic privileges. This works fine as long as I use the IN operator to restrict my values as IN requires a stored procedure that returns at table with exactly one column. However, if I want to use GT (Greater Than) operator it the stored procedure needs to output one scalar value. So far I was not able to create a repository stored procedure (not catalog procedure!) with scalar output parameters.

Is this possible in general and have I just missed something?

I can create scalar input parameters and table output parameters but nothing else?!?

 

the background is that I have a table that should drive security - e.g. which Account a user is allowed to see based on SESSION_USER

If there are no entries for a given user he should be allowed to see all Accounts

Maybe there is also a way to somehow tell the engine to omit the restriction in case now rows exist? - I guess this would be the best considering query performance

 

thanks,

-gerhard


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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