Skip to content

Commit

Permalink
[postgresql] quote schemaless table
Browse files Browse the repository at this point in the history
  • Loading branch information
isosphere committed Nov 20, 2023
1 parent 9a0ec09 commit 216bb5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/loaders/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def reload(self):
if self.options.postgres_schema:
source = f'"{self.options.postgres_schema}"."{self.source}"'
else:
source = self.source
source = f'"{self.source}"'
with self.sql.cur(f"SELECT * FROM {source}") as cur:
self.rows = []
r = cur.fetchone()
Expand Down

0 comments on commit 216bb5a

Please # to comment.