Subject | RE: [Firebird-Architect] Database triggers |
---|---|
Author | Leyne, Sean |
Post date | 2006-09-19T18:38:03Z |
Martijn,
class of trigger.
I'm just saying that it makes more sense to relate the system triggers
with the RDB$Database table, since the triggers will be in the context
of the database.
Can you think of any reason why a developer would create a trigger on
the RDB$Database table?
It seems to be a better solution than creating a new table just for this
purpose.
Sean
> > Martijn and Adriano,getting
> >
> > > > Comments?
> > >
> > > Sure. Why not create a table RDB$DATABASE_TRIGGERS instead of
> > > "incompatible values" in RDB$TRIGGER_TYPE.level
> >
> > Why not link the triggers to the RDB$Database table?
> >
> > It would seem very appropriate since we are talking about database
> > actions.You'll note that the syntax provides for <type> which denotes a special
> >
> > So, the syntax would be:
> > CREATE TRIGGER <name> <type> ON RDB$Database AS ...
> >
> >
> > Adriano,
> >
> > This would be a very good thing!
>
> This sounds like you're creating a normal trigger on a system table.
> Doesn't
> make sense to me Sean :-)
class of trigger.
I'm just saying that it makes more sense to relate the system triggers
with the RDB$Database table, since the triggers will be in the context
of the database.
Can you think of any reason why a developer would create a trigger on
the RDB$Database table?
It seems to be a better solution than creating a new table just for this
purpose.
Sean