Skip to content

Commit abe2088

Browse files
author
Adam Ever-Hadani
authored
Merge pull request #28 from RDFLib/feature/ah-mysql-connectiojns
Call engine.dispose() before setting to None in close()
2 parents f1aa22e + 9d162dc commit abe2088

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rdflib_sqlalchemy/store.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ def close(self, commit_pending_transaction=False):
253253
Close the current store engine connection if one is open.
254254
255255
"""
256+
if self.engine:
257+
self.engine.dispose()
256258
self.engine = None
257259

258260
def destroy(self, configuration):

0 commit comments

Comments
 (0)