Merge pull request #39 from diegoguimaraes/master

Fixing bug
This commit is contained in:
Friedrich Lindenberg 2013-11-15 12:43:56 -08:00
commit ea582d3fce

View File

@ -68,7 +68,7 @@ class Table(object):
if ensure:
self._ensure_columns(row, types=types)
res = self.database.executable.execute(self.table.insert(row))
return res.lastrowid
return res.inserted_primary_key[0]
def insert_many(self, rows, chunk_size=1000, ensure=True, types={}):
"""