summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-01-15 00:31:49 (GMT)
committerGuido van Rossum <guido@python.org>2007-01-15 00:31:49 (GMT)
commit523d4f942c108db6fcd94a26d1cfd1d579d49426 (patch)
tree95c7cc7634cb729d87b3161bfb42fde2e413082f /Modules
parentf4100005ae552ab4d5112b270a45c6091c30045e (diff)
downloadcpython-523d4f942c108db6fcd94a26d1cfd1d579d49426.zip
cpython-523d4f942c108db6fcd94a26d1cfd1d579d49426.tar.gz
cpython-523d4f942c108db6fcd94a26d1cfd1d579d49426.tar.bz2
Fix the sqlite failure -- it was the usual, PyInt_Check -> PyInt_CheckExact.
Clarify some OverflowError messages from the various PyLong_AsXXX methods.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/statement.c b/Modules/_sqlite/statement.c
index 4e45636..7763d10 100644
--- a/Modules/_sqlite/statement.c
+++ b/Modules/_sqlite/statement.c
@@ -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