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

Try changing read_sql_to_dataframe to take a engine instead of a connection, to see if this will help with unclosed connections to the sql database

ogert преди 5 години
родител
ревизия
171430b223
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      cdplib/db_handlers/SQLHandler.py

+ 1 - 1
cdplib/db_handlers/SQLHandler.py

@@ -511,7 +511,7 @@ class SQLHandler:
             connection.close()
             '''
             data = pd.read_sql(sql=query,
-                               con=self.engine,
+                               con=self._engine,
                                **read_sql_kwargs)
             return data