summaryrefslogtreecommitdiffstats
path: root/pgcli/pgexecute.py
diff options
context:
space:
mode:
authorAndy Schoenberger <akschoenberger@gmail.com>2022-11-21 19:10:13 -0500
committerGitHub <noreply@github.com>2022-11-21 16:10:13 -0800
commit2db54f14aae65e2639d1392fc4154964fb762d4e (patch)
treed8cd9388ebdf7bde12d4893385ecfec659bc8ec7 /pgcli/pgexecute.py
parentd6ca4c346462844f3209cedfdc892def2fddf38d (diff)
fix psycopg.sql.Identifier in \ev handling (#1384)
Diffstat (limited to 'pgcli/pgexecute.py')
-rw-r--r--pgcli/pgexecute.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py
index 8f2968d6..9dae9c78 100644
--- a/pgcli/pgexecute.py
+++ b/pgcli/pgexecute.py
@@ -470,7 +470,7 @@ class PGExecute:
return (
psycopg.sql.SQL(template)
.format(
- name=psycopg.sql.Identifier(f"{result.nspname}.{result.relname}"),
+ name=psycopg.sql.Identifier(result.nspname, result.relname),
stmt=psycopg.sql.SQL(result.viewdef),
)
.as_string(self.conn)