From 2db67118fcf118706f476bc78972cc5b28429188 Mon Sep 17 00:00:00 2001 From: Sriniwas Date: Thu, 19 Sep 2024 20:44:51 +0530 Subject: [PATCH] fix: case insensetive memo search for postgres (#3938) fix:case insensetive memo search for postgres #3892 --- store/db/postgres/memo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/db/postgres/memo.go b/store/db/postgres/memo.go index 57cbd61c..6e28949f 100644 --- a/store/db/postgres/memo.go +++ b/store/db/postgres/memo.go @@ -66,7 +66,7 @@ func (d *DB) ListMemos(ctx context.Context, find *store.FindMemo) ([]*store.Memo } if v := find.ContentSearch; len(v) != 0 { for _, s := range v { - where, args = append(where, "memo.content LIKE "+placeholder(len(args)+1)), append(args, fmt.Sprintf("%%%s%%", s)) + where, args = append(where, "memo.content ILIKE "+placeholder(len(args)+1)), append(args, fmt.Sprintf("%%%s%%", s)) } } if v := find.VisibilityList; len(v) != 0 {