Opened 17 years ago
Closed 17 years ago
#6254 closed (fixed)
fetchone() method in oracle backends could not return correct unicode
Reported by: | Owned by: | Erin Kelly | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | oracle db backends base.py | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
in db/backends/oracle/basy.py ,line 513: return to_unicode(Database.Cursor.fetchone(self))
fetchone() return a tuple,and to_unicode method do nothing to tuple:
def to_unicode(s):
"""
Convert strings to Unicode objects (and return all other data types
unchanged).
"""
if isinstance(s, basestring):
return force_unicode(s)
return s
line 513 may like this:
return tuple([to_unicode(e) for e in Database.Cursor.fetchone(self))])
Change History (3)
comment:1 by , 17 years ago
Component: | Uncategorized → Database wrapper |
---|
comment:2 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
(In [6995]) Fixed #6254: Made fetchone() in the oracle backend correctly convert
strings to unicode objects.