From 9cb7f835576cf85591eadaaedcc4c468e4364efe Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 14 Mar 2020 16:52:00 +1300 Subject: [PATCH] Calling the c struct a struct to avoid confusion --- psycopg3/_pq_ctypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psycopg3/_pq_ctypes.py b/psycopg3/_pq_ctypes.py index d6e748db7..04b12e683 100644 --- a/psycopg3/_pq_ctypes.py +++ b/psycopg3/_pq_ctypes.py @@ -15,11 +15,11 @@ pq = ctypes.pydll.LoadLibrary(ctypes.util.find_library("pq")) # libpq data types -class PGconn(Structure): +class PGconn_struct(Structure): _fields_ = [] -PGconn_ptr = POINTER(PGconn) +PGconn_ptr = POINTER(PGconn_struct) # Function definitions as explained in PostgreSQL 12 documentation -- 2.47.3