Database: Fix MySQL crasher

Tablename with an odd .fr character caused the insert in Hands to fail

Resolves: http://sourceforge.net/apps/mantisbt/fpdb/view.php?id=60
This commit is contained in:
Worros 2010-12-20 15:21:43 +08:00
parent e705188dd2
commit b39637866c

View File

@ -1699,6 +1699,10 @@ class Database:
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(p)
print _("###### End Hands ########")
# Tablename can have odd charachers
p['tableName'] = Charset.to_db_utf8(p['tableName'])
#stores into table hands:
q = self.sql.query['store_hand']