From de8e0051a55b20a39b34c6799dcbc5bf2fad8366 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 12 Jun 2024 19:02:58 +0200 Subject: [PATCH] fix: fix PQclosePortal not supported error message --- psycopg/psycopg/pq/_pq_ctypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psycopg/psycopg/pq/_pq_ctypes.py b/psycopg/psycopg/pq/_pq_ctypes.py index f157e1ce0..f3a7b143f 100644 --- a/psycopg/psycopg/pq/_pq_ctypes.py +++ b/psycopg/psycopg/pq/_pq_ctypes.py @@ -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] -- 2.47.2