From: richard Date: Mon, 10 Aug 2009 04:25:15 +0000 (+0000) Subject: compatibilty fix for pysqlite2 / unicode X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ca4b30735d2aa8f05541e19bfa805747e7120109;p=roundup.git compatibilty fix for pysqlite2 / unicode git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4345 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index f882af3..0e49a09 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,7 +1,7 @@ This file contains the changes to the Roundup system over time. The entries are given with the most recent entry first. -2009-08-10 1.4.9 (r4340) +2009-08-10 1.4.9 (r4344) Fixes: diff --git a/roundup/backends/back_sqlite.py b/roundup/backends/back_sqlite.py index 59ada1a..245240f 100644 --- a/roundup/backends/back_sqlite.py +++ b/roundup/backends/back_sqlite.py @@ -109,10 +109,10 @@ class Database(rdbms_common.Database): conn = sqlite.connect(db, timeout=30) conn.row_factory = sqlite.Row - # sqlite3 wants us to store Unicode in the db but that's not what's - # been done historically and it's definitely not what the other - # backends do, so we'll stick with UTF-8 - if sqlite_version == 3: + # pysqlite2 / sqlite3 want us to store Unicode in the db but + # that's not what's been done historically and it's definitely + # not what the other backends do, so we'll stick with UTF-8 + if sqlite_version in (2, 3): conn.text_factory = str cursor = conn.cursor()