bug fix: init function for fields not working
This commit is contained in:
parent
0933e4155f
commit
653d22cd8c
|
@ -239,6 +239,8 @@ class SQLWriter(SQLRW,Writer):
|
||||||
try:
|
try:
|
||||||
table = self._tablename(self.table)
|
table = self._tablename(self.table)
|
||||||
self.fields = pd.read_sql_query("SELECT * FROM :table LIMIT 1".replace(":table",table),self.conn).columns.tolist()
|
self.fields = pd.read_sql_query("SELECT * FROM :table LIMIT 1".replace(":table",table),self.conn).columns.tolist()
|
||||||
|
except Exception as e:
|
||||||
|
pass
|
||||||
finally:
|
finally:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue