Updating views with triggers
Добавлено: 03 июн 2006, 10:30
Подскажите pls.
IB 6.5 doc:
"You can specify nondefault behavior for updatable views, as well. InterBase does not perform writethroughs on any view that has one or more triggers defined on it.
Note: If you define BEFORE triggers for a view that the InterBase engine considers to be directly updatable, on an UPDATE,DELETE, or INSERT
operation the BEFORE trigger will fire;also, the default action attempted by the UPDATE/DELETE/INSERTstatement will be executed, generating two actions and hence unexpected results."
Т.е. если для обновляемой view (например 'create view ... as select * from standalonetable') определить AFTER тригеры, то дейстия по умолчанию производиться не будут.
Не могу добиться такого поведения в FB 1.5. Так должно быть?
IB 6.5 doc:
"You can specify nondefault behavior for updatable views, as well. InterBase does not perform writethroughs on any view that has one or more triggers defined on it.
Note: If you define BEFORE triggers for a view that the InterBase engine considers to be directly updatable, on an UPDATE,DELETE, or INSERT
operation the BEFORE trigger will fire;also, the default action attempted by the UPDATE/DELETE/INSERTstatement will be executed, generating two actions and hence unexpected results."
Т.е. если для обновляемой view (например 'create view ... as select * from standalonetable') определить AFTER тригеры, то дейстия по умолчанию производиться не будут.
Не могу добиться такого поведения в FB 1.5. Так должно быть?