From 0689b87d91c0fe81ffbad4ac24bd39c7fca9c5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 20 Sep 2011 12:52:02 +0200 Subject: [PATCH] Don't convert SQLite str parameters into unicode Binary fields are no more encoded into base64 and others should be unicode --- trytond/backend/sqlite/database.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trytond/backend/sqlite/database.py b/trytond/backend/sqlite/database.py index 66d576c0b2..bc719c6c51 100644 --- a/trytond/backend/sqlite/database.py +++ b/trytond/backend/sqlite/database.py @@ -291,8 +291,7 @@ class Cursor(CursorInterface): sql = buf[:-2] try: if params: - res = self.cursor.execute(sql, [isinstance(x, str) and \ - unicode(x, 'utf-8') or x for x in params]) + res = self.cursor.execute(sql, params) else: res = self.cursor.execute(sql) except Exception: