Skip to content

Commit

Permalink
cast column to text to allow pattern ilike
Browse files Browse the repository at this point in the history
  • Loading branch information
manmorjim committed Jul 6, 2021
1 parent 48591e3 commit 84636bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var checkAndBuildOpts = require('builder/helpers/required-opts');
var CustomListCollection = require('builder/components/custom-list/custom-list-collection');
var BaseModel = require('builder/components/custom-list/custom-list-item-model');

var queryTemplate = _.template("SELECT DISTINCT <%= column %> FROM (<%= sql %>) _table_sql WHERE <%= column %> ilike '%<%= search %>%' ORDER BY <%= column %> ASC");
var queryTemplate = _.template("SELECT DISTINCT <%= column %> FROM (<%= sql %>) _table_sql WHERE <%= column %>::text ilike '%<%= search %>%' ORDER BY <%= column %> ASC");

var REQUIRED_OPTS = [
'configModel',
Expand Down

0 comments on commit 84636bd

Please sign in to comment.