[CONC-633] mariadb_stmt_execute_direct: mysql_error returns error from execute instead of prepare Created: 2023-02-06 Updated: 2023-05-02 Resolved: 2023-05-02 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | Prepared Statements |
| Affects Version/s: | 3.1.19, 3.3.3 |
| Fix Version/s: | 3.1.21, 3.3.5 |
| Type: | Task | Priority: | Major |
| Reporter: | Georg Richter | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
While mysql_stmt_error() returns the correct result from failing mysql_stmt_prepare(), mysql_error() returns the error from mysql_stmt_execute()
Output:
|
| Comments |
| Comment by Georg Richter [ 2023-05-02 ] |
|
commit 669726a1d9c00217403fe405bf8681c8949a8d5d Fix for If prepare step failed in mariadb_stmt_execute_direct now both |