Bug #61917 | Unable to save result of a sum into a local variable in a stored proc | ||
---|---|---|---|
Submitted: | 19 Jul 2011 19:41 | Modified: | 19 Jul 2011 20:19 |
Reporter: | Prashant Doshi | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S1 (Critical) |
Version: | 5.5.13-enterprise-commercial-advanced-lo | OS: | Windows |
Assigned to: | CPU Architecture: | Any |
[19 Jul 2011 19:41]
Prashant Doshi
[19 Jul 2011 20:13]
Prashant Doshi
I would like to close this issue. The problem was resolved by correction the DECLARE CONTINUE HANDLER statement as follows: DECLARE CONTINUE HANDLER FOR NOT FOUND BEGIN END; -- ignore NOT FOUND errors thrown by select INTO statements when no rows are returned I was missing the BEGIN END; block on the DECLARE line