mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
This commit is contained in:
parent
09debc9a5b
commit
ace2ccf387
3 changed files with 6 additions and 2 deletions
|
@ -450,6 +450,7 @@ Bastian Kleineidam
|
||||||
Bob Kline
|
Bob Kline
|
||||||
Matthias Klose
|
Matthias Klose
|
||||||
Jeremy Kloth
|
Jeremy Kloth
|
||||||
|
Thomas Kluyver
|
||||||
Kim Knapp
|
Kim Knapp
|
||||||
Lenny Kneler
|
Lenny Kneler
|
||||||
Pat Knight
|
Pat Knight
|
||||||
|
|
|
@ -50,6 +50,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
|
||||||
|
Reported and diagnosed by Thomas Kluyver.
|
||||||
|
|
||||||
- Issue #7689: Allow pickling of dynamically created classes when their
|
- Issue #7689: Allow pickling of dynamically created classes when their
|
||||||
metaclass is registered with copy_reg. Patch by Nicolas M. Thiéry and
|
metaclass is registered with copy_reg. Patch by Nicolas M. Thiéry and
|
||||||
Craig Citro.
|
Craig Citro.
|
||||||
|
|
|
@ -55,8 +55,8 @@ static pysqlite_StatementKind detect_statement_type(char* statement)
|
||||||
|
|
||||||
dst = buf;
|
dst = buf;
|
||||||
*dst = 0;
|
*dst = 0;
|
||||||
while (isalpha(*src) && dst - buf < sizeof(buf) - 2) {
|
while (Py_ISALPHA(*src) && dst - buf < sizeof(buf) - 2) {
|
||||||
*dst++ = tolower(*src++);
|
*dst++ = Py_TOLOWER(*src++);
|
||||||
}
|
}
|
||||||
|
|
||||||
*dst = 0;
|
*dst = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue