summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2018-09-20 11:10:49 (GMT)
committerGitHub <noreply@github.com>2018-09-20 11:10:49 (GMT)
commit8d1e190fc507a9e304f6817e761e9f628a23cbd8 (patch)
tree27ac322d66fa2c6551368f87694d5055790f1144 /Modules
parentffef50f1f5907e5f0f175b12088d3e509011f126 (diff)
downloadcpython-8d1e190fc507a9e304f6817e761e9f628a23cbd8.zip
cpython-8d1e190fc507a9e304f6817e761e9f628a23cbd8.tar.gz
cpython-8d1e190fc507a9e304f6817e761e9f628a23cbd8.tar.bz2
bpo-32215: Fix performance regression in sqlite3 (GH-8511)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/statement.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_sqlite/statement.c b/Modules/_sqlite/statement.c
index 3869088..78033d8 100644
--- a/Modules/_sqlite/statement.c
+++ b/Modules/_sqlite/statement.c
@@ -85,10 +85,10 @@ int pysqlite_statement_create(pysqlite_Statement* self, pysqlite_Connection* con
continue;
}
- self->is_dml = (PyOS_strnicmp(p, "insert ", 7) == 0)
- || (PyOS_strnicmp(p, "update ", 7) == 0)
- || (PyOS_strnicmp(p, "delete ", 7) == 0)
- || (PyOS_strnicmp(p, "replace ", 8) == 0);
+ self->is_dml = (PyOS_strnicmp(p, "insert", 6) == 0)
+ || (PyOS_strnicmp(p, "update", 6) == 0)
+ || (PyOS_strnicmp(p, "delete", 6) == 0)
+ || (PyOS_strnicmp(p, "replace", 7) == 0);
break;
}