Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/cursor.c @ 83735:d5b5116bf953 3.2
Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,
such as was shipped with Centos 5 and Mac OS X 10.4.
| author | Serhiy Storchaka <storchaka@gmail.com> |
|---|---|
| date | Sun, 28 Apr 2013 14:10:27 +0300 |
| parents | 55a89352e220 |
| children | da9c443e67ba |
line wrap: on
line diff
--- a/Modules/_sqlite/cursor.c Sun May 12 11:11:51 2013 +0200 +++ b/Modules/_sqlite/cursor.c Sun Apr 28 14:10:27 2013 +0300 @@ -716,7 +716,7 @@ Py_DECREF(self->lastrowid); if (!multiple && statement_type == STATEMENT_INSERT) { - sqlite3_int64 lastrowid; + sqlite_int64 lastrowid; Py_BEGIN_ALLOW_THREADS lastrowid = sqlite3_last_insert_rowid(self->connection->db); Py_END_ALLOW_THREADS
