summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-29 14:26:02 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-29 14:26:02 (GMT)
commitec9a4afa32e723bece8b77fe79b2371cd4947270 (patch)
tree0e39777533c2cd180e4559bbf80e6e755877813b
parent3227af454cd14d3843b11ab7609cd1b06e87a6af (diff)
downloadcpython-ec9a4afa32e723bece8b77fe79b2371cd4947270.zip
cpython-ec9a4afa32e723bece8b77fe79b2371cd4947270.tar.gz
cpython-ec9a4afa32e723bece8b77fe79b2371cd4947270.tar.bz2
Straggler (forgot to save this earlier).
-rw-r--r--Modules/_sqlite/cursor.c3
1 files changed, 1 insertions, 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);