[Python-3000-checkins] r57660 - python/branches/py3k/Modules/_sqlite/cursor.c
guido.van.rossum
python-3000-checkins at python.org
Wed Aug 29 16:26:02 CEST 2007
Author: guido.van.rossum
Date: Wed Aug 29 16:26:02 2007
New Revision: 57660
Modified:
python/branches/py3k/Modules/_sqlite/cursor.c
Log:
Straggler (forgot to save this earlier).
Modified: python/branches/py3k/Modules/_sqlite/cursor.c
==============================================================================
--- python/branches/py3k/Modules/_sqlite/cursor.c (original)
+++ python/branches/py3k/Modules/_sqlite/cursor.c Wed Aug 29 16:26:02 2007
@@ -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);
More information about the Python-3000-checkins
mailing list