Skip to content

Commit 25e8f11

Browse files
authored
Merge pull request #1492 from 0chain/fix/fs-ci
Use case insensitive search for file search
2 parents 3dc0b63 + 33311ec commit 25e8f11

File tree

1 file changed

+1
-1
lines changed
  • code/go/0chain.net/blobbercore/reference

1 file changed

+1
-1
lines changed

code/go/0chain.net/blobbercore/reference/ref.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func GetReferenceByLookupHashForDownload(ctx context.Context, allocationID, path
283283
func GetReferencesByName(ctx context.Context, allocationID, name string) (refs []*Ref, err error) {
284284
db := datastore.GetStore().GetTransaction(ctx)
285285
err = db.Model(&Ref{}).
286-
Where("allocation_id = ? AND name LIKE ?", allocationID, "%"+name+"%").
286+
Where("allocation_id = ? AND name ILIKE ?", allocationID, "%"+name+"%").
287287
Limit(20).
288288
Find(&refs).Error
289289
if err != nil {

0 commit comments

Comments
 (0)