Bug #45609 | declare handler not working after transaction timeout | ||
---|---|---|---|
Submitted: | 19 Jun 2009 11:01 | Modified: | 28 Jul 2010 18:58 |
Reporter: | Heribert Steuer | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.1.34-log, 5.0, 5.1, azalea bzr | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | cursor, DECLARE, No data - zero rows fetched, or processed, selected, timeout |
[19 Jun 2009 11:01]
Heribert Steuer
[20 Jun 2009 8:22]
Sveta Smirnova
Thank you for the report. Verified as described.
[28 Jul 2010 18:58]
Konstantin Osipov
This is not a bug. On timeout/deadlock, InnoDB rolls back the transaction, which is terminal to execution of a stored function, thus no handlers inside stored function can handle it. The only statement that MySQL allows in this case is ROLLBACK, which is not allowed in stored functions anyway. Use stored procedures instead.