[CONCPP-51] Connector crashes on use of a Statement created by deleted Connection object Created: 2020-11-18  Updated: 2020-11-23  Resolved: 2020-11-23

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

Type: Bug Priority: Major
Reporter: Lawrin Novitsky Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The same happens if execute prepared query after deleting Connection object it was prepared on.
That should be detect and and an exception thrown



 Comments   
Comment by Lawrin Novitsky [ 2020-11-19 ]

Closing it so far, as the exact issue has been fixed, but I suspect similar problem may be found with PS. I'll re-open this, of open a new ticket.
Commit c235b46

Comment by Lawrin Novitsky [ 2020-11-20 ]

Connector also crashes if execute prepared query after deleting Connection object it was prepared on. Basically, the same reason.

Comment by Lawrin Novitsky [ 2020-11-23 ]

2nd part of the fix/test comes in the commit c6294e6

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