[CONC-623] Check return code of parameter callback function Created: 2023-01-08 Updated: 2023-01-15 Resolved: 2023-01-15 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | Prepared Statements |
| Affects Version/s: | 3.3.3 |
| Fix Version/s: | 3.3.4 |
| Type: | Task | Priority: | Major |
| Reporter: | Georg Richter | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The (still undocumented) implementation for parameter callback doesn't check the return code of the callback function, so the execute function cannot be cancelled if e.g. the application detected invalid data which shouldn't be processed. If the parameter callback function returns a non zero value, Connector/C should set an error and cancel the current execution. |