comparison src/connections.c @ 71:f06381a47ab0 MySQLdb

Back-port unsigned long kill unpack fix from 1.2br.
author kylev
date Tue, 08 Dec 2009 00:20:52 +0000
parents 18e5892a5aed
children 3b03cb566032
comparison
equal deleted inserted replaced
70:29b4cfd9af07 71:f06381a47ab0
750 _mysql_ConnectionObject *self, 750 _mysql_ConnectionObject *self,
751 PyObject *args) 751 PyObject *args)
752 { 752 {
753 unsigned long pid; 753 unsigned long pid;
754 int r; 754 int r;
755 if (!PyArg_ParseTuple(args, "i:kill", &pid)) return NULL; 755 if (!PyArg_ParseTuple(args, "k:kill", &pid)) return NULL;
756 check_connection(self); 756 check_connection(self);
757 Py_BEGIN_ALLOW_THREADS 757 Py_BEGIN_ALLOW_THREADS
758 r = mysql_kill(&(self->connection), pid); 758 r = mysql_kill(&(self->connection), pid);
759 Py_END_ALLOW_THREADS 759 Py_END_ALLOW_THREADS
760 if (r) return _mysql_Exception(self); 760 if (r) return _mysql_Exception(self);