Subject | Re: [Firebird-Architect] Can we, can we, can we????... |
---|---|
Author | Dmitry Yemanov |
Post date | 2005-06-15T06:36:44Z |
"Jim Starkey" <jas@...> wrote:
- What do you mean by "client's account id"?
cancel a request running under A's credentials in attachment 2.
to unconditionally get tokens for every compiled request.
The only serious issue I see in your proposal is that it doesn't support
isc_dsql_execute_immediate().
Dmitry
>Okay.
> 1. A request token is generated if requested by isc_dsql_sql_info.
> 2. The request takes out an exclusive lock on the request token with- I suppose the lock is created by isc_dsql_sql_info too?
> a blocking ast. The lock data is the client's account id (if the
> engine holds an exclusive lock on the database, this lock doesn't
> need to be expressed to the lock manager).
- What do you mean by "client's account id"?
> 3. When a "request cancel" is received on an attachment it loopsFine.
> through local attachments and requests to find the request with
> the given token. If found, it is flagged for cancellation.
> 4. The the request isn't local, the engine gets a null lock on theI'm not sure that a regular user A from attachment 1 should be able to
> given request token, reads the account id from the lock data, and
> validates access permission. It then requests a shared lock on
> the request token.
cancel a request running under A's credentials in attachment 2.
> 5. The target request gets a blocking AST indicating that is shouldFine. I only hope that the connectivity layer developers will never decide
> consider itself cancelled.
to unconditionally get tokens for every compiled request.
The only serious issue I see in your proposal is that it doesn't support
isc_dsql_execute_immediate().
> There is a little trickery required for general database unique requestYes, this is a bit tricky, but doable.
> tokens for classic mode that I suspect can be handled by lock data.
Dmitry