From ec9a4afa32e723bece8b77fe79b2371cd4947270 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 29 Aug 2007 14:26:02 +0000 Subject: Straggler (forgot to save this earlier). --- Modules/_sqlite/cursor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index 55a1ffc..c468754 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -497,10 +497,9 @@ PyObject* _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* rc = pysqlite_statement_reset(self->statement); } - operation_cstr = PyUnicode_AsString(operation); + operation_cstr = PyUnicode_AsStringAndSize(operation, &operation_len); if (operation == NULL) goto error; - operation_len = strlen(operation_cstr); /* XXX */ /* reset description and rowcount */ Py_DECREF(self->description); -- cgit v0.12