Commit ec9a4afa authored by Guido van Rossum's avatar Guido van Rossum

Straggler (forgot to save this earlier).

parent 3227af45
...@@ -497,10 +497,9 @@ PyObject* _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* ...@@ -497,10 +497,9 @@ PyObject* _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject*
rc = pysqlite_statement_reset(self->statement); rc = pysqlite_statement_reset(self->statement);
} }
operation_cstr = PyUnicode_AsString(operation); operation_cstr = PyUnicode_AsStringAndSize(operation, &operation_len);
if (operation == NULL) if (operation == NULL)
goto error; goto error;
operation_len = strlen(operation_cstr); /* XXX */
/* reset description and rowcount */ /* reset description and rowcount */
Py_DECREF(self->description); Py_DECREF(self->description);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment