]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
fix: fix PQclosePortal not supported error message
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 12 Jun 2024 17:02:58 +0000 (19:02 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 12 Jun 2024 17:02:58 +0000 (19:02 +0200)
psycopg/psycopg/pq/_pq_ctypes.py

index f157e1ce04890efc21590a6f8f96c53725c69280..f3a7b143fe3e617464b0096cdaa8e52449fef56e 100644 (file)
@@ -323,7 +323,7 @@ if libpq_version >= 170000:
 
 else:
     PQclosePrepared = not_supported_before("PQclosePrepared", 170000)
-    PQclosePortal = not_supported_before("PQclosePrepared", 170000)
+    PQclosePortal = not_supported_before("PQclosePortal", 170000)
 
 PQresultStatus = pq.PQresultStatus
 PQresultStatus.argtypes = [PGresult_ptr]