Commit e440e80
committed
Fix string conversion from database
The sql_to_hyperdb_value table would convert strings coming from the
database using "str". This is now changed to "us2s", converting unicode
strings coming from the database to utf-8. This happens only for
python2, for python3 the database interface uses unicode (aka str in
python3). This fixes the behaviour for mysql if utf8 encoding is chosen
explicitly, it seems in that case the database interface returns values
as python2 unicode objects.1 parent 1567180 commit e440e80
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
1105 | 1104 | | |
1106 | 1105 | | |
1107 | 1106 | | |
1108 | | - | |
| 1107 | + | |
1109 | 1108 | | |
1110 | 1109 | | |
1111 | 1110 | | |
| |||
0 commit comments