[CONCPP-16] Several functions aren't returning anything when they should Created: 2020-06-29  Updated: 2020-07-27  Resolved: 2020-07-27

Status: Closed
Project: MariaDB Connector/C++
Component/s: General
Affects Version/s: None
Fix Version/s: 0.9.3

Type: Bug Priority: Major
Reporter: Andrew Hutchings (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The following functions state they return something, but it is possible for the function to end returning nothing:

1. MariaDbStatement::executeInternal
2. MariaDbStatement::testExecute
3. MariaDbStatement::executeBatch
4. MariaDbStatement::executeLargeBatch
5. QueryProtocol::executeBulkBatch
6. ServerSidePreparedStatement::executeInternal



 Comments   
Comment by Lawrin Novitsky [ 2020-07-27 ]

Basically, they all returned or threw. There rather was some code, that was never executed. And in some cases it could cause memory leaks, and maybe other errors, too.
The fix has been pushed in the commit a576f87

Generated at Thu Feb 08 03:07:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.