mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-32215: Fix performance regression in sqlite3 (GH-8511)
This commit is contained in:
parent
ffef50f1f5
commit
8d1e190fc5
2 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue