Skip to content

Commit

Permalink
Merge pull request ckan#3975 from camfindlay/patch-1
Browse files Browse the repository at this point in the history
DOCS Note for sql searches with UPPERCASE column names
  • Loading branch information
amercader authored Jan 9, 2018
2 parents 7506353 + d0d0fa3 commit ae12f82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckanext/datastore/logic/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,10 @@ def datastore_search_sql(context, data_dict):
.. note:: This action is only available when using PostgreSQL 9.X and
using a read-only user on the database.
It is not available in :ref:`legacy mode<legacy-mode>`.
.. note:: When source data columns (i.e. CSV) heading names are provdied
in all UPPERCASE you need to double quote them in the SQL select
statement to avoid returning null results.
:param sql: a single SQL select statement
:type sql: string
Expand Down

0 comments on commit ae12f82

Please sign in to comment.