mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
sqlite3: Modernize documentation around unicode and bytes. (GH-28652) (GH-28695)
(cherry picked from commit 1dac95c814)
Co-authored-by: Julien Palard <julien@palard.fr>
This commit is contained in:
parent
52d9d3b754
commit
92450f23c6
2 changed files with 4 additions and 4 deletions
|
|
@ -3,9 +3,9 @@
|
|||
con = sqlite3.connect(":memory:")
|
||||
cur = con.cursor()
|
||||
|
||||
AUSTRIA = "\xd6sterreich"
|
||||
AUSTRIA = "Österreich"
|
||||
|
||||
# by default, rows are returned as Unicode
|
||||
# by default, rows are returned as str
|
||||
cur.execute("select ?", (AUSTRIA,))
|
||||
row = cur.fetchone()
|
||||
assert row[0] == AUSTRIA
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue