File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
con = sqlite3 .connect (":memory:" )
4
4
cur = con .cursor ()
5
5
6
- AUSTRIA = "\xd6 sterreich "
6
+ AUSTRIA = "Österreich "
7
7
8
- # by default, rows are returned as Unicode
8
+ # by default, rows are returned as str
9
9
cur .execute ("select ?" , (AUSTRIA ,))
10
10
row = cur .fetchone ()
11
11
assert row [0 ] == AUSTRIA
Original file line number Diff line number Diff line change @@ -537,8 +537,8 @@ Connection Objects
537
537
538
538
Using this attribute you can control what objects are returned for the ``TEXT ``
539
539
data type. By default, this attribute is set to :class: `str ` and the
540
- :mod: `sqlite3 ` module will return Unicode objects for ``TEXT ``. If you want to
541
- return bytestrings instead, you can set it to :class: `bytes `.
540
+ :mod: `sqlite3 ` module will return :class: ` str ` objects for ``TEXT ``.
541
+ If you want to return :class: ` bytes ` instead, you can set it to :class: `bytes `.
542
542
543
543
You can also set it to any other callable that accepts a single bytestring
544
544
parameter and returns the resulting object.
You can’t perform that action at this time.
0 commit comments