diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 51888e5021d80..42f97f19456ab 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -1079,7 +1079,8 @@ def _sqlalchemy_type(self, col): return Text - def _get_dtype(self, sqltype): + @staticmethod + def _get_dtype(sqltype): from sqlalchemy.types import TIMESTAMP, Boolean, Date, DateTime, Float, Integer if isinstance(sqltype, Float): @@ -1750,7 +1751,8 @@ def read_query( ) return frame - def _fetchall_as_list(self, cur): + @staticmethod + def _fetchall_as_list(cur): result = cur.fetchall() if not isinstance(result, list): result = list(result) @@ -1838,7 +1840,8 @@ def has_table(self, name, schema=None): return len(self.execute(query, [name]).fetchall()) > 0 - def get_table(self, table_name, schema=None): + @staticmethod + def get_table(table_name, schema=None): return None # not supported in fallback mode def drop_table(self, name, schema=None):