Skip to content

Commit

Permalink
more info on semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Aug 28, 2012
1 parent 76940c1 commit 8909da9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/datastore/logic/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def data_search_sql(context, data_dict):

if not db.is_single_statement(sql):
raise p.toolkit.ValidationError({
'query': ['Is not a single statement']
'query': ['Query is not a single statement or contains semicolons.'],
'hint': ['If you want to use semicolons, use character encoding (; equals chr(59)) and string concatenation (||). ']
})

p.toolkit.check_access('datastore_search', context, data_dict)
Expand Down

0 comments on commit 8909da9

Please sign in to comment.