Преглед на файлове

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.