Skip to content

Commit

Permalink
[#652] Provide more useful information if sql search goes wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Apr 22, 2013
1 parent 3f4363e commit 738c2fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/datastore/db.py
Expand Up @@ -1117,8 +1117,8 @@ def search_sql(context, data_dict):
'query': [str(e)],
'info': {
'statement': [e.statement],
'params': [e.params],
'orig': [str(e.orig)]
'orig': [str(e.orig)],
'pgcode': e.orig.pgcode
}
})
except DBAPIError, e:
Expand Down

0 comments on commit 738c2fb

Please sign in to comment.