Skip to content

Commit

Permalink
Merge branch 'rishabh/fix-install-schema' of github.com:defog-ai/defo…
Browse files Browse the repository at this point in the history
…g-python into rishabh/fix-install-schema
  • Loading branch information
rishsriv committed Jan 12, 2024
2 parents e1ac606 + 6f8a6df commit f10203b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions defog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,9 @@ def generate_mysql_schema(

if len(tables) == 0:
# get all tables
table_schema = self.db_creds.get("database", "")
db_name = self.db_creds.get("database", "")
cur.execute(
"SELECT table_name FROM information_schema.tables WHERE table_schema = '{table_schema}';"
f"SELECT table_name FROM information_schema.tables WHERE table_schema = '{db_name}';"
)
tables = [row[0] for row in cur.fetchall()]

Expand Down

0 comments on commit f10203b

Please sign in to comment.