Update for newer MySQLdb

util/stats/db.py:
    Update for newer MySQLdb, the result of a blob in a query is an
    array.array now, so we need to convert that to a string

--HG--
extra : convert_revision : 32732983d3d7141755085ec4913fdae057edc67f
This commit is contained in:
Nathan Binkert 2005-01-12 13:41:06 -05:00
parent 202758eea2
commit ed7926664f

View file

@ -171,7 +171,7 @@ class Database(object):
self.query('select * from formulas')
for id,formula in self.cursor.fetchall():
self.allFormulas[int(id)] = formula
self.allFormulas[int(id)] = formula.tostring()
StatData.db = self
self.query('select * from stats')