Skip to content

Commit

Permalink
Just use self.commit()
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed May 14, 2014
1 parent 3015ca1 commit bb50ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peewee.py
Original file line number Diff line number Diff line change
Expand Up @@ -2541,7 +2541,7 @@ def last_insert_id(self, cursor, model):
schema, meta.db_table, meta.primary_key.db_column))
result = cursor.fetchone()[0]
if self.get_autocommit():
self.get_conn().commit()
self.commit()
return result

def get_indexes_for_table(self, table):
Expand Down

0 comments on commit bb50ff8

Please sign in to comment.