mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Added extra check in qtLiteral method.
2) Fixed some escaping issues.
This commit is contained in:
@@ -279,7 +279,8 @@ class Driver(BaseDriver):
|
||||
|
||||
if conn:
|
||||
try:
|
||||
if type(conn) != psycopg.Connection:
|
||||
if type(conn) != psycopg.Connection and \
|
||||
type(conn) != psycopg.AsyncConnection:
|
||||
conn = conn.conn
|
||||
res = psycopg.sql.Literal(value).as_string(conn).strip()
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user