Subject | Re: connection context variable |
---|---|
Author | yeohray |
Post date | 2005-04-25T15:22:50Z |
Thanks. I was hoping for a read/write variable.
Ray Mond
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
Ray Mond
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
> At 02:32 AM 25/04/2005 +0000, you wrote:each
>
>
> >Is there a per-connection context variable available in Firebird to
> >store a value (an integer or string value)? Say I need to store
> >something on the server side to identify a certain attribute of
> >connection.1.5
>
> You have the read-only CURRENT_CONNECTION context variable from Fb
> onward. You can store it at logon in a client variable thataccepts a
> 64-bit integer. It will remain valid until the applicationdetaches from
> the connection. To determine what it is, just run a query likethis, at
> any time during the session:RDB$DATABASE;
>
> select CAST(CURRENT_CONNECTION AS BIGINT) AS CONN_ID FROM
>
> ./hb