fix: ILIKE helper
This commit is contained in:
parent
a7231e197e
commit
dff4e01327
@ -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 + "%"}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user