From: Daniele Varrazzo Date: Sat, 14 Mar 2020 03:52:00 +0000 (+1300) Subject: Calling the c struct a struct to avoid confusion X-Git-Tag: 3.0.dev0~733 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9cb7f835576cf85591eadaaedcc4c468e4364efe;p=thirdparty%2Fpsycopg.git Calling the c struct a struct to avoid confusion --- 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