Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/cursor.c @ 83527:44fe1f5b07e3 2.7
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.
This bug was already fixed in issue14572 for 2.7 only and then it was
backported back from 3.3 in issue17073.
| author | Serhiy Storchaka <storchaka@gmail.com> |
|---|---|
| date | Sun, 28 Apr 2013 14:09:47 +0300 |
| parents | 649937bb8f1c |
| children |
line wrap: on
line diff
--- a/Modules/_sqlite/cursor.c Wed Apr 24 23:31:38 2013 +0200 +++ b/Modules/_sqlite/cursor.c Sun Apr 28 14:09:47 2013 +0300 @@ -732,7 +732,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
