Subject | RE: [Firebird-Architect] User name SYSDBA |
---|---|
Author | Rick Debay |
Post date | 2005-08-24T13:48:04Z |
> If you intend to log up CURRENT_USER and CURRENT_ROLECould CURRENT_ROLES (note plural) be available as an SQL Array?
-----Original Message-----
From: Firebird-Architect@yahoogroups.com
[mailto:Firebird-Architect@yahoogroups.com] On Behalf Of Christian
Danner
Sent: Wednesday, August 24, 2005 5:31 AM
To: Firebird-Architect@yahoogroups.com
Subject: Re: [Firebird-Architect] User name SYSDBA
Hi Jim,
on Mon, 22 Aug 2005 07:28:49 -0400, you wrote:
>Christian Danner wrote:If you intend to log up CURRENT_USER and CURRENT_ROLE being used to
>
>>But additionally the storage of a role / role set, actually to a
>>VAR-/CHAR variable, would have to be considered, IMHO a compatibility
>>problem even harder to solve. If the assignment of a NULL-value isn't
>>adequate CURRENT_ROLE should at least support a term like 'MULTI' for
>>that purpose (in accordance to 'NONE'). In contrast to this a simple
>>concatenation of the roles could lead to an overflow of the
>>destination, which may not be prepared for such a long string. Enough
>>to be figured out by the gurus - if at all.
>>
>I implemented an "is active_role(<rolename>)" predicate in
>Netfrastructure to address this problem.
modify a dataset, this could possibly lead to the storage of a role
which itself doesn't have the right to do the job. Hard to interpret
this discrepancy the right way later on - but you can't have it all.
Christian
Yahoo! Groups Links