Bug #17591 | Updatable view not possible with trigger or stored function | ||
---|---|---|---|
Submitted: | 20 Feb 2006 18:16 | Modified: | 12 Sep 2006 1:26 |
Reporter: | Mike Gent | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S1 (Critical) |
Version: | 5.0.18 | OS: | Windows (Windows) |
Assigned to: | Tomash Brechko | CPU Architecture: | Any |
[20 Feb 2006 18:16]
Mike Gent
[21 Feb 2006 16:39]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described.
[7 Aug 2006 13:47]
Tomash Brechko
Change title, as bug also affects stored functions.
[7 Aug 2006 16:48]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/10126 ChangeSet@1.2235, 2006-08-07 20:47:52+04:00, kroki@moonlight.intranet +3 -0 BUG#17591: Updatable view not possible with trigger or stored function When a view was used inside a trigger or a function, lock type for tables used in a view was always set to READ, even if we were trying to update the view. The solution is to set lock type properly.
[23 Aug 2006 13:39]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/10761 ChangeSet@1.2235, 2006-08-23 17:37:26+04:00, kroki@moonlight.intranet +3 -0 BUG#17591: Updatable view not possible with trigger or stored function When a view was used inside a trigger or a function, lock type for tables used in a view was always set to READ, even if we were trying to update the view. The solution is to set lock type properly.
[29 Aug 2006 10:33]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/10994 ChangeSet@1.2235, 2006-08-29 14:32:59+04:00, kroki@moonlight.intranet +3 -0 BUG#17591: Updatable view not possible with trigger or stored function When a view was used inside a trigger or a function, lock type for tables used in a view was always set to READ (thus making the view non-updatable), even if we were trying to update the view. The solution is to set lock type properly.
[29 Aug 2006 12:25]
Tomash Brechko
Queued to 5.0-runtime.
[31 Aug 2006 10:23]
Konstantin Osipov
Pushed into 5.0.25 and 5.1.12
[12 Sep 2006 1:26]
Paul DuBois
Noted in 5.0.25, 5.1.12 changelogs. Views could not be updated within a stored function or trigger.