diff --git a/src/ifcpatch/ifcpatch/recipes/Ifc2Sql.py b/src/ifcpatch/ifcpatch/recipes/Ifc2Sql.py index 686dc2177e..b650825ae9 100644 --- a/src/ifcpatch/ifcpatch/recipes/Ifc2Sql.py +++ b/src/ifcpatch/ifcpatch/recipes/Ifc2Sql.py @@ -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: