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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 89c2639 commit 0a7ec91dc3fb03502a38ea501f2b24f5730c484c @kmtracey kmtracey committed Mar 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/
@@ -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])

0 comments on commit 0a7ec91

Please sign in to comment.