From ed7926664f25f1b5fb2871956c30868027939e15 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 12 Jan 2005 13:41:06 -0500 Subject: [PATCH] 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 --- util/stats/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/stats/db.py b/util/stats/db.py index 4cba82446..495cdb5b5 100644 --- a/util/stats/db.py +++ b/util/stats/db.py @@ -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') -- 2.30.2