Merge branch 'chaz' of git://github.com/ChazDazzle/fpdb-chaz

This commit is contained in:
Worros 2010-09-29 13:02:30 +08:00
commit dbbccc4ac6

View File

@ -1782,10 +1782,13 @@ class Database:
#print "DEBUG: q: %s" % q #print "DEBUG: q: %s" % q
c = self.get_cursor() c = self.get_cursor()
for r in inserts: if self.import_options['saveActions']:
c.execute(q, r) for r in inserts:
hpid[(r[0], r[1])] = self.get_last_insert_id(c) c.execute(q, r)
hpid[(r[0], r[1])] = self.get_last_insert_id(c)
else:
c.executemany(q, inserts)
return hpid return hpid
def storeHandsActions(self, hid, pids, hpid, adata, printdata = False): def storeHandsActions(self, hid, pids, hpid, adata, printdata = False):