ifc2sql - close cursor too

Important on Windows if someone is using Patcher explicitly and `self.c` is not garbage collected and file stays locked and cannot be moved.
This commit is contained in:
Andrej
2025-06-04 13:53:49 +05:00
parent b07b0e4bea
commit 7f0f93f726
+1
View File
@@ -224,6 +224,7 @@ class Patcher(ifcpatch.BasePatcher):
self.c.execute("INSERT INTO geometry VALUES (%s, %s, %s, %s, %s, %s);", row)
self.db.commit()
self.c.close() # Important for static use of Patcher on Windows.
self.db.close()
def create_geometry(self) -> None: