Bug #23760 | row_count() and store procedure not working together | ||
---|---|---|---|
Submitted: | 30 Oct 2006 6:41 | Modified: | 18 Dec 2006 19:01 |
Reporter: | D R | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.17-nt-max-log, 5.1 BK | OS: | Windows (WinXP ServicePack 2) |
Assigned to: | Andrey Hristov | CPU Architecture: | Any |
[30 Oct 2006 6:41]
D R
[14 Nov 2006 14:00]
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/15296 ChangeSet@1.2334, 2006-11-14 14:18:10+01:00, andrey@example.com +4 -0 Fix for bug#23760 ROW_COUNT() and store procedure not owrking together The problem was that THD::row_count_func was zeroed too early. It's zeroed as a fix for bug 4905 "Stored procedure doesn't clear for "Rows affected"
[14 Nov 2006 14:03]
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/15300 ChangeSet@1.2334, 2006-11-14 14:05:48+01:00, andrey@example.com +4 -0 Fix for bug#23760 ROW_COUNT() and store procedure not owrking together The problem was that THD::row_count_func was zeroed too early. It's zeroed as a fix for bug 4905 "Stored procedure doesn't clear for "Rows affected"
[14 Nov 2006 14:07]
Tomash Brechko
Sent review by mail. After investigation it turned out that the solution won't work, and bug#4905 should be fixed a different way.
[14 Nov 2006 17:42]
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/15307 ChangeSet@1.2334, 2006-11-14 18:40:11+01:00, andrey@example.com +3 -0 Fix for bug#23760 ROW_COUNT() and store procedure not owrking together The problem was that THD::row_count_func was zeroed too. It was zeroed as a fix for bug 4905 "Stored procedure doesn't clear for "Rows affected" However, the proper solution is not to zero, because THD::row_count_func has been set to -1 already in mysql_execute_command(), a later fix, which obsoletes the incorrect fix of #4095
[8 Dec 2006 16:56]
Andrey Hristov
The fix will be part of 5.0.32 and 5.1.15
[18 Dec 2006 19:01]
Paul DuBois
Noted in 5.0.32, 5.1.15 changelogs. ROW_COUNT() did not work properly as an argument to a stored procedure.