This commit is contained in:
@@ -530,6 +530,12 @@ namespace AyaNova.DataList
|
||||
//for initial release a tag filter is inclusive of all tags only
|
||||
//in other words all tags presented must be in record to match (simple AND)
|
||||
//select * from awidget where awidget.tags @> array['blah','blah3'::varchar(255)]
|
||||
|
||||
//NOTE: After coding this discovered *can* do a LIKE query with tags like this:
|
||||
//(array_to_string(awidget.tags,',') like '%zo%')
|
||||
//implemented that way in picklistquery builder
|
||||
//also ilike is a postgres case insensitive like but works on current locale of server which
|
||||
//sounds like it might fuck up when using other languages so...
|
||||
StringBuilder sbTags = new StringBuilder();
|
||||
sbTags.Append("@> array[");
|
||||
List<string> normalizedTags = TagUtil.NormalizeTags(sTags);
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.PickList
|
||||
internal static string Build(IAyaPickList pickList, List<string> templateColumnNames, string autoCompleteQuery, bool IncludeInactive)
|
||||
{
|
||||
|
||||
|
||||
|
||||
//TODO: custom template routes and tests
|
||||
//TODO: TESTS FOR ALL FORMS OF QUERY (tags, non text fields etc)
|
||||
//TODO: Clean out unnneeded stuff in AyaPickListFieldDefinition (stuff from datalist copied over)
|
||||
|
||||
Reference in New Issue
Block a user