From a7d4c6243ab0b660e859827e8663425473fa3c71 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Fri, 29 Jan 2010 23:29:37 +0000 Subject: [PATCH] add assignment (but commented out) that fixes unicode probs for me with sqlite --- pyfpdb/Database.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index b0a49112..bf6c04af 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -399,6 +399,11 @@ class Database: self.cursor = self.connection.cursor() self.cursor.execute('PRAGMA temp_store=2') # use memory for temp tables/indexes self.cursor.execute('PRAGMA synchronous=0') # don't wait for file writes to finish + + # sqlcoder: this assignment fixes unicode problems for me with sqlite (windows, cp1252) + # feel free to remove or improve this if you understand the problems + # better than me (not hard!) + # Charset.not_needed = True else: raise FpdbError("unrecognised database backend:"+backend)