From b39637866c6e03effd8768edc1a3ec747159900e Mon Sep 17 00:00:00 2001 From: Worros Date: Mon, 20 Dec 2010 15:21:43 +0800 Subject: [PATCH] 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 --- pyfpdb/Database.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 943479cd..89d3d630 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -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']