Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.1.X] Changed last_executed_query to avoid raising exceptions on no…

…n-utf8-encoded parameter data.

r12737 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0a7ec91dc3fb03502a38ea501f2b24f5730c484c 1 parent 89c2639
@kmtracey kmtracey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/__init__.py
View
2  django/db/backends/__init__.py
@@ -208,7 +208,7 @@ def last_executed_query(self, cursor, sql, params):
from django.utils.encoding import smart_unicode, force_unicode
# Convert params to contain Unicode values.
- to_unicode = lambda s: force_unicode(s, strings_only=True)
+ to_unicode = lambda s: force_unicode(s, strings_only=True, errors='replace')
if isinstance(params, (list, tuple)):
u_params = tuple([to_unicode(val) for val in params])
else:
Please sign in to comment.
Something went wrong with that request. Please try again.