mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 17:34:08 +03:00
Fix up structmember definitions to match real types. T_LONG is not the
same as T_INT/T_UINT on AMD64 ...
This commit is contained in:
parent
82557e65a2
commit
e192c603fa
|
@ -231,9 +231,9 @@ static struct PyMethodDef lobjectObject_methods[] = {
|
||||||
/* object member list */
|
/* object member list */
|
||||||
|
|
||||||
static struct PyMemberDef lobjectObject_members[] = {
|
static struct PyMemberDef lobjectObject_members[] = {
|
||||||
{"oid", T_LONG, offsetof(lobjectObject, oid), RO,
|
{"oid", T_UINT, offsetof(lobjectObject, oid), RO,
|
||||||
"The backend OID associated to this lobject."},
|
"The backend OID associated to this lobject."},
|
||||||
{"closed", T_LONG, offsetof(lobjectObject, closed), RO,
|
{"closed", T_INT, offsetof(lobjectObject, closed), RO,
|
||||||
"The if the large object is closed (no file-like methods)."},
|
"The if the large object is closed (no file-like methods)."},
|
||||||
{"mode", T_STRING, offsetof(lobjectObject, smode), RO,
|
{"mode", T_STRING, offsetof(lobjectObject, smode), RO,
|
||||||
"Open mode ('r', 'w', 'rw' or 'n')."},
|
"Open mode ('r', 'w', 'rw' or 'n')."},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user