[
http://issues.apache.org/jira/browse/DERBY-115?page=comments#action_12314433 ]
Jean T. Anderson commented on DERBY-115:
----------------------------------------
The NO CASCADE BEFORE example in the patch won't work because BEFORE triggers
don't allow INSERTs. A BEFORE trigger can execute a SQL function, so here's a
suggestion:
CREATE TRIGGER t1 NO CASCADE BEFORE UPDATE ON x
FOR EACH ROW MODE DB2SQL
values app.notifyEmail('Jerry', 'Table x is about to be updated');
> BEFORE triggers missing from CREATE TRIGGER documentation
> ---------------------------------------------------------
>
> Key: DERBY-115
> URL: http://issues.apache.org/jira/browse/DERBY-115
> Project: Derby
> Type: Bug
> Components: Documentation
> Versions: 10.0.2.1
> Reporter: Daniel John Debrunner
> Priority: Minor
> Attachments: derby115.zip
>
> Derby does support before triggers, syntax is the same as after triggers,
> but replace AFTER with NO CASCADE BEFORE. Eg.
> create trigger t1
> NO CASCADE BEFORE insert on x
> referencing new_table as newrowtab
> for each statement mode db2sql
> insert into y select x from newrowtab;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira