Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
This commit is contained in:
commit
8e4dd08f23
|
@ -516,6 +516,7 @@ Bastian Kleineidam
|
|||
Bob Kline
|
||||
Matthias Klose
|
||||
Jeremy Kloth
|
||||
Thomas Kluyver
|
||||
Kim Knapp
|
||||
Lenny Kneler
|
||||
Pat Knight
|
||||
|
|
|
@ -294,6 +294,9 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
|
||||
Reported and diagnosed by Thomas Kluyver.
|
||||
|
||||
- Issue #13087: BufferedReader.seek() now always raises UnsupportedOperation
|
||||
if the underlying raw stream is unseekable, even if the seek could be
|
||||
satisfied using the internal buffer. Patch by John O'Connor.
|
||||
|
|
|
@ -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…
Reference in New Issue