Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL)
-
None
Description
mysql_stmt_close() is inconsistent in 10.0 and 10.1. It returns 1 on an error and 0 on success. But the stmt handle is freed for some errors and not freed for others. The caller has no way of knowing whether the handle was freed. It should either free or keep the handle for all errors.
- MariaDB 5.5, MariaDB 10.2 (with C/C), and MySQL (5.5–5.7) — they all free the handle unconditionally.
- MySQL manual shows an example of using the handle after mysql_stmt_close() returned an error, which implies that the handle should not be freed.
Attachments
Issue Links
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Remote Link | This issue links to "related DBD-mysql bug report (Web Link)" [ 27959 ] |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 5.5 [ 15800 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Fix Version/s | 10.0.31 [ 22501 ] | |
Fix Version/s | 10.1.24 [ 22541 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Priority | Major [ 3 ] | Minor [ 4 ] |
Workflow | MariaDB v3 [ 80565 ] | MariaDB v4 [ 152064 ] |