[pywin32-checkins] pywin32/win32/src dbi.cpp,1.7,1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2004-10-07 03:42:00
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31999 Modified Files: dbi.cpp Log Message: Fix reference count bug in str() of a dbi object. Via [ 1017653 ] crash fix for dbi.dll Index: dbi.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/dbi.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** dbi.cpp 13 Sep 2004 03:02:31 -0000 1.7 --- dbi.cpp 7 Oct 2004 03:41:49 -0000 1.8 *************** *** 82,85 **** --- 82,92 ---- } + static PyObject *dbiRawStr(PyObject *self) + { + PyObject *val = dbiValue(self); + Py_INCREF(val); + return val; + } + static PyObject *dateStr(PyObject *o) { *************** *** 203,207 **** 0, /*tp_hash */ 0, /*tp_call */ ! dbiValue /*tp_str */ }; --- 210,214 ---- 0, /*tp_hash */ 0, /*tp_call */ ! dbiRawStr /*tp_str */ }; |