Skip to content

Commit

Permalink
[#2733] Bug fix: commit transaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnglover committed Jul 25, 2012
1 parent c192689 commit 3a91c40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckanext/datastore/db.py
Expand Up @@ -158,6 +158,7 @@ def create(context, data_dict):
else:
alter_table(context, data_dict)
insert_data(context, data_dict)
trans.commit()
return data_dict
except:
trans.rollback()
Expand Down

0 comments on commit 3a91c40

Please sign in to comment.