Skip to content

Commit

Permalink
fix: error binding parameter - probably unsupported type
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Dec 14, 2023
1 parent 854a255 commit b338b18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def import_query(self, query):
if not result:
return
columns = [col["label"] for col in result[0]]
df = pd.DataFrame(result[1:], columns=columns)
df = pd.DataFrame(result[1:], columns=columns, dtype=str)
df.to_sql(query.name, self.connection, if_exists="replace", index=False)

def sync_tables(self, connection, tables=None, force=False):
Expand Down

0 comments on commit b338b18

Please sign in to comment.