We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dfce06 commit fae710dCopy full SHA for fae710d
_mysql.c
@@ -1079,7 +1079,7 @@ _mysql_escape_string(
1079
PyObject *str;
1080
char *in, *out;
1081
int len, size;
1082
- if (!PyArg_ParseTuple(args, "y#:escape_string", &in, &size)) return NULL;
+ if (!PyArg_ParseTuple(args, "s#:escape_string", &in, &size)) return NULL;
1083
str = PyBytes_FromStringAndSize((char *) NULL, size*2+1);
1084
if (!str) return PyErr_NoMemory();
1085
out = PyBytes_AS_STRING(str);
0 commit comments