Page 1 of 1

TOraStoredProc problem

Posted: Wed 09 Mar 2005 15:31
by Danilkak
Hi !

I have package in pl/sql where defined overloaded function

FUNCTION IsRoleGranted(aIdUser INTEGER DEFAULT NULL, aIdRole INTEGER) RETURN BOOLEAN;
FUNCTION IsRoleGranted(aIdUser INTEGER DEFAULT NULL, aIdRole VARCHAR) RETURN BOOLEAN;

when i create component TOraStoredProc and point to call this package function, then component write next code:

declare
v_RESULT boolean;
begin
v_RESULT := auth.AUTH_USERS.ISROLEGRANTED(:AIDROLE,:AIDUSER);
:RESULT := sys.DIUTIL.BOOL_TO_INT(v_RESULT);
end;

Pls note, the order of parameters different from declaration of function.

Posted: Wed 09 Mar 2005 16:16
by Danilkak
Sorry. I use Delphi 7 and Oracle 9.2.0.6

Posted: Thu 10 Mar 2005 10:29
by Alex
We couldn't reproduce your problem, pls. specify your Oracle client and ODAC versions and if it possible send us small demo project with scripts to create server side objects.

Posted: Thu 10 Mar 2005 12:33
by Danilkak
Sorry, it's was Oracle error