Subject | Re: [Firebird-Architect] On connect/disconnect trigger |
---|---|
Author | Dmitry Yemanov |
Post date | 2006-06-02T06:06:02Z |
"Dimitry Sibiryakov" <aafemt@...> wrote:
params via SQL, let's rather implement SET SESSION CHARACTERISTICS from
SQL2003.
Dmitry
>I really don't think this is a good idea. If you want to change the session
> Not sure about before connect, but OLD and NEW contexts could be
> useful if they include connection params.
> Consider these examples:
>
> IF(OLD.ROLE = 'NONE') THEN
> NEW.ROLE = 'SIMPLE_USER';
>
> SELECT RDB$CHARSET FROM RDB$DATABASE INTO :NEW.CHARSET;
params via SQL, let's rather implement SET SESSION CHARACTERISTICS from
SQL2003.
Dmitry