When using convert_unicode=True, regular select returns unicode, but select distinct does not.
Issue #1420
resolved
When using convert_unicode=True, regular select returns unicode, but select distinct does not.
# Normal select returns unicode
sql.select([t.c.text](t.c.text))
# Select distinct does not return unicode
sql.select([t.c.text.distinct()](t.c.text.distinct()))
See attached code. Only tested with postgres. Probably not a problem on sqlite if pysqlite converts all strings to unicode.
Comments (5)
-
repo owner -
repo owner - changed milestone to 0.5.5
-
repo owner - changed milestone to 0.5.6
-
repo owner - changed status to resolved
that patch wasn't quite the issue, it was the result_map not getting populated (alternatively the unary expression could issue an ANON label but letting col naming goes through is nicer). Fixed in 4d036d6dd4a6dde9e7ae18ebc6451fdf8da0c726
-
repo owner - removed milestone
Removing milestone: 0.5.6 (automated comment)
- Log in to comment
heres a possible patch: