fix: ILIKE helper

This commit is contained in:
kolaente 2023-04-03 19:19:51 +02:00
parent a7231e197e
commit dff4e01327
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 0 additions and 4 deletions

View File

@ -31,9 +31,5 @@ func ILIKE(column, search string) builder.Cond {
return builder.Expr(column+" ILIKE ?", "%"+search+"%")
}
if Type() == schemas.SQLITE {
return builder.Expr("username = ? COLLATE NOCASE", "%"+search+"%")
}
return &builder.Like{column, "%" + search + "%"}
}