[
http://issues.apache.org/jira/browse/DERBY-115?page=comments#action_12313918 ]
Daniel John Debrunner commented on DERBY-115:
---------------------------------------------
I think this is correct:
- braces around the NO CASCADE BEFORE | AFTER
- missing brace put back in after the UPDATE
CREATE TRIGGER TriggerName
{ NO CASCADE BEFORE | AFTER }
{ INSERT | DELETE | UPDATE } [ OF column-Name [, column-Name]* ]
ON table-Name
[ ReferencingClause ]
FOR EACH { ROW | STATEMENT } MODE DB2SQL
Triggered-SQL-statement
> 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
>
> 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