Skip to content
Merged
Show file tree
Hide file tree
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
Next Next commit
Address Ma Lin's review
- normalise switch cases
- improve NEWS entry accuracy
  • Loading branch information
erlend-aasland committed Jun 9, 2022
commit b0a7fbc7cabe1e6e5f4c98129305c219a54b7da2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
:mod:`sqlite3` now correctly detects DML queries, even when prefixed with
comments. Patch by Erlend E. Aasland.
:mod:`sqlite3` now correctly detects DML queries with leading comments.
Patch by Erlend E. Aasland.
2 changes: 1 addition & 1 deletion Modules/_sqlite/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ lstrip_sql(const char *sql)
}
break;
case '\n':
case 13:
case '\r':
if (state == IN_LINECOMMENT) {
state = NORMAL;
}
Expand Down