|
|||||||||||
|
Re: Python 2.5
From: Christian Ullrich <chris(at)chrullrich.de>
Date: Fri Jun 29 2007 - 11:58:01 EDT
> Back in March, someone reported that the python interface didn't work I think I may just have fixed it myself. Could someone with more knowledge about Python's C API please have a look at this patch against the 7.6.0.37 sources? At first glance, it works fine. The attributes are back, and it works in Python 1.5, 2.1, 2.4, and 2.5, which are all the releases I tested.
@@ -1626,7 +1626,7 @@
int tracebackLen)
ROUTINE_DBG_MSP00 ("raiseSQLError");
- PyObject * exception = PyInstance_New (SQLErrorType, NULL, NULL);
+ PyObject * exception = PyObject_CallObject(SQLErrorType, NULL);
PyObject * errorCode = NULL;
PyObject * message = NULL;
PyObject * errorPos = NULL;
-- Christian Ullrich -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/maxdb?unsub=lists@pantek.comReceived on Fri Jun 29 12:05:56 2007 This archive was generated by hypermail 2.1.8 : Fri Jun 29 2007 - 12:10:07 EDT |
||||||||||
|
|||||||||||