[MDEV-4603] mysql_stmt_reset returns "commands out of sync" error Created: 2013-05-31 Updated: 2014-03-06 Resolved: 2014-03-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.3 |
| Fix Version/s: | 10.0.9 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Georg Richter | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
all |
||
| Attachments: |
|
| Description |
|
When executing a stored procedure via prepared statement API it's not possible to reset the statement via mysql_stmt_reset function. mysql_stmt_reset returns error 2014 instead of clearing pending result sets. test case attached. |
| Comments |
| Comment by Georg Richter [ 2013-05-31 ] |
|
Suggested fix |
| Comment by Vladislav Vaintroub [ 2013-06-07 ] |
|
1. applied patch. |
| Comment by Georg Richter [ 2013-06-09 ] |
|
Wlad, as mentioned in the header of the test, the test requires the one liner fix for If we want to support server versions without fix for mdev-4604 bug, we need to add additional checks in mysql_next_result and mysql_stmt_store_result (which is already implemented in mariadb-native-client). |