From 2e970baa8251c3d2319f0dbb14587099b3bc035e Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Fri, 29 Jan 2010 22:29:14 +0000 Subject: [PATCH] remove sqlite specific test to skip unicode encoding --- pyfpdb/Database.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index a8456294..b0a49112 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -1769,10 +1769,7 @@ class Database: def insertPlayer(self, name, site_id): result = None - if self.backend == self.SQLITE: - _name = name - else: - _name = Charset.to_db_utf8(name) + _name = Charset.to_db_utf8(name) c = self.get_cursor() q = "SELECT name, id FROM Players WHERE siteid=%s and name=%s" q = q.replace('%s', self.sql.query['placeholder'])