Skip to content

Commit

Permalink
Coding style in sql
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored and amercader committed Oct 12, 2012
1 parent 2f62160 commit a034066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/datastore/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _is_valid_pg_type(context, type_name):
else:
connection = context['connection']
try:
connection.execute('select %s::regtype', type_name)
connection.execute('SELECT %s::regtype', type_name)
except ProgrammingError, e:
if 'invalid type name' in str(e) or 'does not exist' in str(e):
return False
Expand Down

0 comments on commit a034066

Please sign in to comment.