db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-534) Support use of the WHEN clause in CREATE TRIGGER statements
Date Mon, 11 Nov 2013 12:15:17 GMT

     [ https://issues.apache.org/jira/browse/DERBY-534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Knut Anders Hatlen updated DERBY-534:

    Attachment: derby-534-15-a-more-tests.diff

Attaching derby-534-15-a-more-tests.diff which adds more tests:

- Test that the SQL text in a WHEN clause can be longer than the maximum length of a LONG

- Test that a function declared as READ SQL DATA can be invoked from a WHEN clause

- Test that it is not possible to create a function that is declared as MODIFIES SQL DATA
(If it had been possible, the SQL standard says it should not be possible to invoke that function
from a WHEN clause. This test case serves as a reminder to add that restriction if we ever
add support for functions that modify SQL data.)

- Test that it is not possible to call procedures from a WHEN clause

- Test that aggregates (both built-in and user-defined) can be used in a WHEN clause

> Support use of the WHEN clause in CREATE TRIGGER statements
> -----------------------------------------------------------
>                 Key: DERBY-534
>                 URL: https://issues.apache.org/jira/browse/DERBY-534
>             Project: Derby
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Kristian Waagan
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>              Labels: derby_triage10_11
>         Attachments: WhenClause.html, WhenClause.html, WhenClause.html, WhenClause.html,
WhenClause.html, derby-534-01-a-syntax.diff, derby-534-02-a-refactor.diff, derby-534-03-a-npe-testcase.diff,
derby-534-04-a-referencing.diff, derby-534-05-a-generated-cols.diff, derby-534-06-a-temptables.diff,
derby-534-07-a-more-restrictions.diff, derby-534-08-a-test-invalidation.diff, derby-534-09-a-drop-column-deps.diff,
derby-534-09-b-drop-column-deps.diff, derby-534-10-a-get-sps.diff, derby-534-11-a-more-tests.diff,
derby-534-12-a-subquery-npe.diff, derby-534-13-a-dblook.diff, derby-534-14-a-remove-formatable-upgrade.diff,
derby-534-15-a-more-tests.diff, parser.diff
> Support use of the WHEN clause in CREATE TRIGGER statements. The clause is described
in the SQL standard (2003) in chapter "11.39 <trigger definition>" under "<triggered
> There are traces in the code that suggests some work has been done on this earlier. If
anyone knows something about this, please add a comment to this issue.

This message was sent by Atlassian JIRA

View raw message