Subject Re: [Firebird-Architect] On connect/disconnect trigger
Author Martijn Tonies
> > 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;
>
> I really don't think this is a good idea. If you want to change the
session
> params via SQL, let's rather implement SET SESSION CHARACTERISTICS from
> SQL2003.
>
>
> Dmitry

^^

Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com