Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8e4dd08f
Commit
8e4dd08f
authored
Oct 04, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale.
Reported and diagnosed by Thomas Kluyver.
parents
b244d075
1665d2c7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
Modules/_sqlite/cursor.c
Modules/_sqlite/cursor.c
+2
-2
No files found.
Misc/ACKS
View file @
8e4dd08f
...
...
@@ -516,6 +516,7 @@ Bastian Kleineidam
Bob Kline
Matthias Klose
Jeremy Kloth
Thomas Kluyver
Kim Knapp
Lenny Kneler
Pat Knight
...
...
Misc/NEWS
View file @
8e4dd08f
...
...
@@ -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.
...
...
Modules/_sqlite/cursor.c
View file @
8e4dd08f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment