Skip to content

Commit

Permalink
Transaction rollback in create
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 27, 2012
1 parent 4a2e6c7 commit a414ac0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckanext/datastore/db.py
Expand Up @@ -851,6 +851,7 @@ def create(context, data_dict):
else:
raise
except Exception, e:
trans.rollback()
if 'due to statement timeout' in str(e):
raise ValidationError({
'query': ['Query took too long']
Expand Down

0 comments on commit a414ac0

Please sign in to comment.