Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/statement.c @ 40641:342532f4536e
Fix the sqlite failure -- it was the usual, PyInt_Check -> PyInt_CheckExact.
Clarify some OverflowError messages from the various PyLong_AsXXX methods.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 15 Jan 2007 00:31:49 +0000 |
| parents | b0cdcbcc5f45 |
| children | 47f9efdc0855 |
line wrap: on
line diff
--- a/Modules/_sqlite/statement.c Mon Jan 15 00:21:46 2007 +0000 +++ b/Modules/_sqlite/statement.c Mon Jan 15 00:31:49 2007 +0000 @@ -100,7 +100,7 @@ if (parameter == Py_None) { rc = sqlite3_bind_null(self->st, pos); - } else if (PyInt_Check(parameter)) { + } else if (PyInt_CheckExact(parameter)) { longval = PyInt_AsLong(parameter); rc = sqlite3_bind_int64(self->st, pos, (sqlite_int64)longval); #ifdef HAVE_LONG_LONG
