summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/connection.c
diff options
context:
space:
mode:
authorAviv Palivoda <palaviv@gmail.com>2018-03-18 00:48:55 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2018-03-18 00:48:55 (GMT)
commitbbf7bb7a636b3112ef6f6b31df385606d52517ce (patch)
tree28583939db8808674798e6036bca419127ba6721 /Modules/_sqlite/connection.c
parent7f81bb2addbbccfa45a2fc1aa6030f26dcf4bd78 (diff)
downloadcpython-bbf7bb7a636b3112ef6f6b31df385606d52517ce.zip
cpython-bbf7bb7a636b3112ef6f6b31df385606d52517ce.tar.gz
cpython-bbf7bb7a636b3112ef6f6b31df385606d52517ce.tar.bz2
bpo-27645: Fix version number in 'database in transaction' fallback (GH-6131)
It was actually fixed in SQLite 3.8.8, not 3.8.7.
Diffstat (limited to 'Modules/_sqlite/connection.c')
-rw-r--r--Modules/_sqlite/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index 14b6a27..dc5061c 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -1481,8 +1481,8 @@ pysqlite_connection_backup(pysqlite_Connection *self, PyObject *args, PyObject *
return NULL;
}
-#if SQLITE_VERSION_NUMBER < 3008007
- /* Since 3.8.7 this is already done, per commit
+#if SQLITE_VERSION_NUMBER < 3008008
+ /* Since 3.8.8 this is already done, per commit
https://www.sqlite.org/src/info/169b5505498c0a7e */
if (!sqlite3_get_autocommit(((pysqlite_Connection *)target)->db)) {
PyErr_SetString(pysqlite_OperationalError, "target is in transaction");