Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
10.4.2.1, 10.5.1.1
-
Normal
-
Known fix, Repro attached, Workaround attached
Description
Put an INSERT trigger on a table and mention a column in the trigger. Then drop that column from the table. If you drop the column with RESTRICT semantics, you don't get an objection. Both CASCADE and RESTRICT drop the column. However, the trigger remains in both cases. After that, INSERTs into the table fail because the trigger can't find the dropped column. The workaround is to manually drop the trigger either before or after dropping the column. I will attach a test case.
Attachments
Attachments
Issue Links
- blocks
-
DERBY-1482 Update triggers on tables with blob columns stream blobs into memory even when the blobs are not referenced/accessed.
- Closed
- is duplicated by
-
DERBY-4887 ALTER TABLE DROP COLUMN leaves the dependent trigger invalid rather than drop it
- Closed
- is part of
-
DERBY-2041 Trigger should register a dependency on tables and columns used in its body
- Closed
- is related to
-
DERBY-1489 Provide ALTER TABLE DROP COLUMN functionality
- Closed
- relates to
-
DERBY-481 implement SQL generated columns
- Closed