]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Calling the c struct a struct to avoid confusion
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 14 Mar 2020 03:52:00 +0000 (16:52 +1300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 14 Mar 2020 03:52:00 +0000 (16:52 +1300)
psycopg3/_pq_ctypes.py

index d6e748db7f1a9ac5accddc2e8aca548281c0a3e3..04b12e683ee493f20a24f985258fe08ae3e152a2 100644 (file)
@@ -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