From: Nathan Binkert Date: Wed, 12 Jan 2005 18:41:06 +0000 (-0500) Subject: Update for newer MySQLdb X-Git-Tag: m5_1.0_tutorial~112^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed7926664f25f1b5fb2871956c30868027939e15;p=gem5.git 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 --- 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')