mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Issue #14572: Prevent build failures with pre-3.5.0 versions of
sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4.
This commit is contained in:
parent
f439a36630
commit
77e77a1273
2 changed files with 5 additions and 2 deletions
|
@ -549,7 +549,7 @@ void _pysqlite_set_result(sqlite3_context* context, PyObject* py_val)
|
|||
} else if (py_val == Py_None) {
|
||||
sqlite3_result_null(context);
|
||||
} else if (PyInt_Check(py_val)) {
|
||||
sqlite3_result_int64(context, (sqlite3_int64)PyInt_AsLong(py_val));
|
||||
sqlite3_result_int64(context, (sqlite_int64)PyInt_AsLong(py_val));
|
||||
} else if (PyLong_Check(py_val)) {
|
||||
sqlite3_result_int64(context, PyLong_AsLongLong(py_val));
|
||||
} else if (PyFloat_Check(py_val)) {
|
||||
|
@ -580,7 +580,7 @@ PyObject* _pysqlite_build_py_params(sqlite3_context *context, int argc, sqlite3_
|
|||
sqlite3_value* cur_value;
|
||||
PyObject* cur_py_value;
|
||||
const char* val_str;
|
||||
sqlite3_int64 val_int;
|
||||
sqlite_int64 val_int;
|
||||
Py_ssize_t buflen;
|
||||
void* raw_buffer;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue