diff options
author | Andy Schoenberger <akschoenberger@gmail.com> | 2022-11-21 19:10:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 16:10:13 -0800 |
commit | 2db54f14aae65e2639d1392fc4154964fb762d4e (patch) | |
tree | d8cd9388ebdf7bde12d4893385ecfec659bc8ec7 /pgcli/pgexecute.py | |
parent | d6ca4c346462844f3209cedfdc892def2fddf38d (diff) |
fix psycopg.sql.Identifier in \ev handling (#1384)
Diffstat (limited to 'pgcli/pgexecute.py')
-rw-r--r-- | pgcli/pgexecute.py | 2 |
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) |