Mercurial > p > mysql-python > mysqldb-2
diff src/results.c @ 66:5a7c30cd9de2 MySQLdb
By exposing connection on result, decoders can be simplified: Only the field object is needed. Turned on leak testing and found a leak writing BLOBs. removed one of the old stubs in Cursor.
author | adustman |
---|---|
date | Sun, 29 Mar 2009 16:26:30 +0000 |
parents | e606fd52e866 |
children | 98d968f5af11 |
line wrap: on
line diff
--- a/src/results.c Sun Mar 29 00:52:14 2009 +0000 +++ b/src/results.c Sun Mar 29 16:26:30 2009 +0000 @@ -629,6 +629,13 @@ static struct PyMemberDef _mysql_ResultObject_memberlist[] = { { + "connection", + T_OBJECT, + offsetof(_mysql_ConnectionObject, connection), + RO, + "Connection associated with result" + }, + { "converter", T_OBJECT, offsetof(_mysql_ResultObject, converter),