mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
This commit is contained in:
parent
0fc80c0d5a
commit
1665d2c75f
3 changed files with 6 additions and 2 deletions
|
@ -55,8 +55,8 @@ static pysqlite_StatementKind detect_statement_type(const char* statement)
|
|||
|
||||
dst = buf;
|
||||
*dst = 0;
|
||||
while (isalpha(*src) && dst - buf < sizeof(buf) - 2) {
|
||||
*dst++ = tolower(*src++);
|
||||
while (Py_ISALPHA(*src) && dst - buf < sizeof(buf) - 2) {
|
||||
*dst++ = Py_TOLOWER(*src++);
|
||||
}
|
||||
|
||||
*dst = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue