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,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'])