Don't convert SQLite str parameters into unicode

Binary fields are no more encoded into base64 and others should be unicode
This commit is contained in:
Cédric Krier
2011-09-20 12:52:02 +02:00
parent 02e5fb58c0
commit 0689b87d91
+1 -2
View File
@@ -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: