remove sqlite specific test to skip unicode encoding

This commit is contained in:
sqlcoder 2010-01-29 22:29:14 +00:00
parent 5982df0b04
commit 2e970baa82

View File

@ -1769,9 +1769,6 @@ class Database:
def insertPlayer(self, name, site_id): def insertPlayer(self, name, site_id):
result = None 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() c = self.get_cursor()
q = "SELECT name, id FROM Players WHERE siteid=%s and name=%s" q = "SELECT name, id FROM Players WHERE siteid=%s and name=%s"