Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/cursor.c @ 42988:0d28a520c9b1
Straggler (forgot to save this earlier).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 29 Aug 2007 14:26:02 +0000 |
| parents | cb5ae020a060 |
| children | 8c10aac37037 |
line wrap: on
line diff
--- a/Modules/_sqlite/cursor.c Wed Aug 29 14:21:45 2007 +0000 +++ b/Modules/_sqlite/cursor.c Wed Aug 29 14:26:02 2007 +0000 @@ -497,10 +497,9 @@ 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);
