Bug #17833 | Event doesn't work when trigger is active for the table | ||
---|---|---|---|
Submitted: | 1 Mar 2006 18:47 | Modified: | 12 Jun 2006 7:03 |
Reporter: | Markus Popp | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S2 (Serious) |
Version: | 5.1.8 bk | OS: | Windows (Windows, Linux) |
Assigned to: | CPU Architecture: | Any |
[1 Mar 2006 18:47]
Markus Popp
[24 Apr 2006 14:42]
Valeriy Kravchuk
I was able to repeat the same behaviour you described, but... Have you tried to INSERT into that table with trigger in place? I've tried: mysql> insert into tt values(20, 20); ERROR 1442 (HY000): Can't update table 'tt' in stored function/trigger because it is already used by statement which invoked this stored function/trigger. So, your event simply can not insert any more rows with that trigger in place. Check, please. I think, it is not a bug.
[2 May 2006 5:23]
Markus Popp
I would understand it this way: * event driven INSERT fires trigger to delete all rows * new row is being inserted So there should always be one (the most recently added) row in the table.
[12 May 2006 7:03]
Valeriy Kravchuk
My understanding is different. EVENT caused INSERT to be executed. As a part of INSERT statement trigger is invoked, but it produce unhandled exception (can not work, as I had demonstrated), so entire INSERT statement does not work. Statements are atomic - either all changes are performed or no one. Do you agree with me?
[12 Jun 2006 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".