static PyObject* wsql_debug(PyObject *self, PyObject *args) { char *debug; if (!PyArg_ParseTuple(args, "s", &debug)) return NULL; mysql_debug(debug); Py_RETURN_NONE; }
static PyObject * _mysql_debug( PyObject *self, PyObject *args) { char *debug; if (!PyArg_ParseTuple(args, "s", &debug)) return NULL; mysql_debug(debug); Py_INCREF(Py_None); return Py_None; }
/* my_debug(string) */ static VALUE my_debug(VALUE obj, VALUE str) { mysql_debug( StringValueCStr(str)); return obj; }
check_server_init(NULL); return PyInt_FromLong((long)mysql_thread_safe()); } #endif extern char _mysql_connect__doc__[]; PyObject * _mysql_connect( PyObject *self, PyObject *args, PyObject *kwargs); static char _mysql_debug__doc__[] = "Does a DBUG_PUSH with the given string.\n\ mysql_debug() uses the Fred Fish debug library.\n\ To use this function, you must compile the client library to\n\ support debugging.\n\ "; static PyObject * _mysql_debug( PyObject *self, PyObject *args) { char *debug; if (!PyArg_ParseTuple(args, "s", &debug)) return NULL; mysql_debug(debug); Py_INCREF(Py_None); return Py_None; }
void CDatabase_Connection::debug(string debug) { mysql_debug(debug.c_str()); }