aboutsummaryrefslogtreecommitdiff
path: root/internal/storage/entry_query_builder.go
diff options
context:
space:
mode:
authorGravatar Romain de Laage <romain.delaage@rdelaage.ovh> 2024-04-05 12:09:29 +0200
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-04-14 20:08:38 -0700
commit647c66e70af50cf7ca786eba51d4fdb67b89fecc (patch)
tree0b83098620a1be897f8f2081da82c575ee71e1d8 /internal/storage/entry_query_builder.go
parentb205b5aad075dc89040231f87c79bec2a7ea60c7 (diff)
downloadv2-647c66e70af50cf7ca786eba51d4fdb67b89fecc.tar.gz
v2-647c66e70af50cf7ca786eba51d4fdb67b89fecc.tar.zst
v2-647c66e70af50cf7ca786eba51d4fdb67b89fecc.zip
ui: add tag entries page
Diffstat (limited to 'internal/storage/entry_query_builder.go')
-rw-r--r--internal/storage/entry_query_builder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/storage/entry_query_builder.go b/internal/storage/entry_query_builder.go
index 680fbedb..9ab26738 100644
--- a/internal/storage/entry_query_builder.go
+++ b/internal/storage/entry_query_builder.go
@@ -160,7 +160,7 @@ func (e *EntryQueryBuilder) WithStatuses(statuses []string) *EntryQueryBuilder {
func (e *EntryQueryBuilder) WithTags(tags []string) *EntryQueryBuilder {
if len(tags) > 0 {
for _, cat := range tags {
- e.conditions = append(e.conditions, fmt.Sprintf("$%d = ANY(e.tags)", len(e.args)+1))
+ e.conditions = append(e.conditions, fmt.Sprintf("LOWER($%d) = ANY(LOWER(e.tags::text)::text[])", len(e.args)+1))
e.args = append(e.args, cat)
}
}