소스 검색

Try handling unclosed sql connections by calling dispose on the engine before it is put back into the pool.

ogert 5 년 전
부모
커밋
cc0c0df402
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cdplib/db_handlers/SQLHandler.py

+ 1 - 1
cdplib/db_handlers/SQLHandler.py

@@ -40,7 +40,7 @@ class SQLHandlerPool(metaclass=SingletonThreadsafe):
         if len(self._sql_handlers) < self._size:
             self._sql_handlers.append(sql_handler)
 
-class SQLHandler(metaclass=SingletonThreadsafe):
+class SQLHandler:
     '''
     Resembles methods for executing sql queries
     with different dabase connectors.