db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Levitt (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-115) BEFORE triggers missing from CREATE TRIGGER documentation
Date Thu, 16 Jun 2005 17:39:48 GMT
    [ http://issues.apache.org/jira/browse/DERBY-115?page=comments#action_12313842 ] 

Jeff Levitt commented on DERBY-115:
-----------------------------------

Hi Dan, I'd be happy to make this change.  However, it seems to me that the CREATE TRIGGERS
syntax has another mistake that I'd like to fix at the same time.  See:

http://incubator.apache.org/derby/docs/ref/rrefsqlj43125.html

On that page, the syntax seems to be missing a closing curly brace "}" to the one that is
opened after the "AFTER".
  
CREATE TRIGGER TriggerName
AFTER 
{ INSERT | DELETE | UPDATE [ OF column-Name [, column-Name]* ]
ON table-Name
[ ReferencingClause ]
FOR EACH { ROW | STATEMENT } MODE DB2SQL 
Triggered-SQL-statement

Where should the closing curly brace go?

Also, for NO CASCADE BEFORE, should I just modify this syntax to look like this?:

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


Mime
View raw message