Fix the sqlite failure -- it was the usual, PyInt_Check -> PyInt_CheckExact.

Clarify some OverflowError messages from the various PyLong_AsXXX methods.
This commit is contained in:
Guido van Rossum 2007-01-15 00:31:49 +00:00
parent f4100005ae
commit 523d4f942c
3 changed files with 9 additions and 9 deletions

View file

@ -100,7 +100,7 @@ int statement_bind_parameter(Statement* self, int pos, PyObject* parameter)
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