projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
202758e
)
Update for newer MySQLdb
author
Nathan Binkert
<binkertn@umich.edu>
Wed, 12 Jan 2005 18:41:06 +0000
(13:41 -0500)
committer
Nathan Binkert
<binkertn@umich.edu>
Wed, 12 Jan 2005 18:41:06 +0000
(13:41 -0500)
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
patch
|
blob
|
history
diff --git
a/util/stats/db.py
b/util/stats/db.py
index 4cba82446d03af35233b600e26d615a18daaae00..495cdb5b5f0e8cb1629c11c7df8c7fd3f9a19aca 100644
(file)
--- 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')