Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update statement.c
  • Loading branch information
Erlend Egeberg Aasland authored Jun 14, 2022
commit 2f298807d7108292bbdf2e0783bbea9ad3ec64a5
6 changes: 3 additions & 3 deletions Modules/_sqlite/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ pysqlite_statement_create(pysqlite_Connection *connection, PyObject *sql)
const char *p = lstrip_sql(sql_cstr);
if (p != NULL) {
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);
|| (PyOS_strnicmp(p, "update", 6) == 0)
|| (PyOS_strnicmp(p, "delete", 6) == 0)
|| (PyOS_strnicmp(p, "replace", 7) == 0);
}

Py_BEGIN_ALLOW_THREADS
Expand Down