fix PyMemberDef type of two attributes (#395)

This commit is contained in:
Jakub Kulík
2019-11-07 16:59:46 +01:00
committed by Inada Naoki
parent 6222ba69b0
commit 0da81656e9

View File

@ -2302,7 +2302,7 @@ static struct PyMemberDef _mysql_ConnectionObject_memberlist[] = {
}, },
{ {
"server_capabilities", "server_capabilities",
T_UINT, T_ULONG,
offsetof(_mysql_ConnectionObject,connection.server_capabilities), offsetof(_mysql_ConnectionObject,connection.server_capabilities),
READONLY, READONLY,
"Capabilities of server; consult MySQLdb.constants.CLIENT" "Capabilities of server; consult MySQLdb.constants.CLIENT"
@ -2316,7 +2316,7 @@ static struct PyMemberDef _mysql_ConnectionObject_memberlist[] = {
}, },
{ {
"client_flag", "client_flag",
T_UINT, T_ULONG,
offsetof(_mysql_ConnectionObject,connection.client_flag), offsetof(_mysql_ConnectionObject,connection.client_flag),
READONLY, READONLY,
"Client flags; refer to MySQLdb.constants.CLIENT" "Client flags; refer to MySQLdb.constants.CLIENT"