You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kim Haase (JIRA)" <ji...@apache.org> on 2014/09/09 19:27:29 UTC

[jira] [Closed] (DERBY-1505) Reference Manual - Limitations of triggered-SQL-statement do not match current behaviour

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

Kim Haase closed DERBY-1505.
----------------------------
    Resolution: Won't Fix

Much work has been done on the CREATE TRIGGER doc over the years, but the three statements listed in the first part of the issue have not been found to be incorrect. The sentence mentioned in the second part of the issue is no longer there, so the problem with it was apparently valid.


> Reference Manual - Limitations of triggered-SQL-statement do not match current behaviour
> ----------------------------------------------------------------------------------------
>
>                 Key: DERBY-1505
>                 URL: https://issues.apache.org/jira/browse/DERBY-1505
>             Project: Derby
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 10.2.1.6
>            Reporter: Deepa Remesh
>            Priority: Minor
>              Labels: derby_triage10_5_2
>
> Reference manual (Section CREATE TRIGGER statement --> Triggered-SQL-statement ) needs to be updated to match the current behaviour:
> 1) I think the following statements are not fully correct:
>    # It must not create, alter, or drop the table upon which the trigger is defined.
>    # It must not add an index to or remove an index from the table on which the trigger is defined.
>    # It must not add a trigger to or drop a trigger from the table upon which the trigger is defined.
> These actions are not allowed on "any" table not just the " table upon which the trigger is defined". In general, the code does not allow execution of any DDL statement within a trigger. I think we can replace the above statements with something like "It cannot contain DDL statements."
> 2) The following statement is not valid:
> "The triggered-SQL-statement can reference database objects other than the table upon which the trigger is declared."
> The triggered-SQL-statement can reference the table upon which the trigger is declared. Hence this statement can be removed.
> It would be good if someone familiar in this area can confirm the proposed changes are okay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)