[MDEV-26132] Removing COM_STMT_CLOSE executes previous statement again. Created: 2021-07-13 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements |
| Affects Version/s: | 10.2.39, 10.3.30, 10.4.20, 10.5.11, 10.6.3 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Georg Richter | Assignee: | Dmitry Shulga |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In branch 3.2-georg of Connector/C I tried to remove a COM_STMT_CLOSE before reusing a statement with mariadb_stmt_execute_direct, which ends up in strange behavior, since the previously executed statement was executed again. From general log:
How to repeat: If I replace execute_direct api calls by mysql_stmt_prepare and mysql_stmt_execute it works as expected. |