Skip to content

Commit

Permalink
fix show tables difference
Browse files Browse the repository at this point in the history
  • Loading branch information
max-hoffman committed Apr 18, 2022
1 parent df56c8a commit 1561285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doltpy/sql/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ def get_query(table: str) -> str:

def tables(self) -> List[str]:
with self.engine.connect() as conn:
result = conn.execute("SHOW TABLES")
return [row["Table"] for row in result]
result = conn.execute("select table_name from information_schema.tables where table_schema = DATABASE();")
return [row["table_name"] for row in result]


class DoltSQLEngineContext(DoltSQLContext):
Expand Down

0 comments on commit 1561285

Please sign in to comment.