#3891 closed (fixed)
CursorDebugWrapper unicode problems
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | debug unicode unicode-branch | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Using Django 0.96/development server/mysql.
I'm writing unicode strings into the db. Writing actually succeeds, but
when the sql query is logged by CursorDebugWrapper, I see a UnicodeDecodeError at
line 19, in django/db/backends/util.py
if not isinstance(params, (tuple, dict)): params = tuple(params) # UnicodeDecodeError raised here self.db.queries.append({ 'sql': sql % params, 'time': "%.3f" % (stop - start), })
Change History (6)
comment:1 Changed 16 years ago by
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 Changed 16 years ago by
comment:3 Changed 16 years ago by
Keywords: | unicode-branch added |
---|
I think this has been fixed in two or three different ways on the unicode branch (including the commit in the above comment). I'll close this ticket when the branch is merged with trunk.
comment:4 Changed 16 years ago by
comment:5 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Another one of the unicode-to-fix issues