add lock_for_insert routine but comment out for now (hangs)

This commit is contained in:
sqlcoder
2009-07-28 21:19:31 +01:00
parent 5d5a6ed39d
commit 12e1da0a5e
3 changed files with 20 additions and 20 deletions
+8
View File
@@ -505,6 +505,14 @@ class Database:
# Start of Hand Writing routines. Idea is to provide a mixture of routines to store Hand data
# however the calling prog requires. Main aims:
# - existing static routines from fpdb_simple just modified
def lock_for_insert(self):
"""Lock tables in MySQL to try to speed inserts up"""
try:
self.get_cursor().execute(self.sql.query['lockForInsert'])
except:
print "Error during fdb.lock_for_insert:", str(sys.exc_value)
#end def lock_for_insert
def storeHands(self, backend, site_hand_no, gametype_id