Closed gdtroszak closed 10 months ago
Thanks for handling this, I was just about to start looking at it!
Shouldn't this be merged?
I believe so. I just need someone with the appropriate privileges to review and merge.
@vlcinsky
I plan to check it by Monday. Thanks for reminding.
hey @vlcinsky, is this good to go?
Bueller... Bueller... Buelller...
Any updates? @vlcinsky
This should fix the issue outlined in https://github.com/kennethreitz/records/issues/128. Essentially, SQLAlchemy connections were being closed prior to their results being consumed by
RecordCollections
.Connections spawned by
Database
query methods are configured to automatically close once their results are consumed. Otherwise, just callingdb.get_connection()
will return aConnection
that must be managed by the user. I also made it a point to check for stray connections prior to closing the DB, but that may be overridden.Sorry for the delay on this.