pull and merge from carl (nothing changed)

This commit is contained in:
sqlcoder
2010-01-27 08:56:51 +00:00
7 changed files with 66 additions and 44 deletions
+1 -2
View File
@@ -71,7 +71,6 @@ import Charset
from Exceptions import *
log = Configuration.get_logger("logging.conf")
encoder = codecs.lookup('utf-8')
DB_VERSION = 119
@@ -1751,7 +1750,7 @@ class Database:
def insertPlayer(self, name, site_id):
result = None
(_name, _len) = encoder.encode(unicode(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'])