[CONCPP-119] Calling close() on the Connection object should cause closing of all Statement objects created on this connection Created: 2024-01-07  Updated: 2024-01-08  Resolved: 2024-01-08

Status: Closed
Project: MariaDB Connector/C++
Component/s: General
Affects Version/s: 1.1.2
Fix Version/s: 1.1.3

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


 Description   

From very beginning C/C++ impements JDBC-like interface, and JDBC specs say "All Statement objects created from a given
Connection object will be closed when the close method for the Connection
object is called.". I guess it makes sense to follow JDBC specs as much, as possible, since in general this is well thought thru DB access interface specification. This particular case looks sensible.



 Comments   
Comment by Lawrin Novitsky [ 2024-01-08 ]

The fix does not really close it, but changes isClosed() to report it is in case if Connection has been explicitly closed.

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