瀏覽代碼

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