/[Apache-SVN]
ViewVC logotype

Revision 1523965


Jump to revision: Previous Next
Author: kahatlen
Date: Tue Sep 17 09:47:50 2013 UTC (10 years, 6 months ago)
Changed paths: 9
Log Message:
DERBY-534: Support use of the WHEN clause in CREATE TRIGGER statements

Add the WHEN clause syntax to the grammar and wire it together with the
existing partial code for the WHEN clause.

Make RowTriggerExecutor and StatementTriggerExecutor execute the WHEN
clause and use the result to decide whether the trigger action should
be executed.

Add some basic positive tests for the currently supported subset of the
functionality.

Changed paths

Path Details
Directorydb/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/TriggerDescriptor.java modified , text changed
Directorydb/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CreateTriggerNode.java modified , text changed
Directorydb/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj modified , text changed
Directorydb/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/CreateTriggerConstantAction.java modified , text changed
Directorydb/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/GenericTriggerExecutor.java modified , text changed
Directorydb/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/RowTriggerExecutor.java modified , text changed
Directorydb/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/StatementTriggerExecutor.java modified , text changed
Directorydb/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TriggerWhenClauseTest.java added
Directorydb/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/_Suite.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26