Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
525c64e678 |
2
pgm.go
2
pgm.go
@@ -107,7 +107,7 @@ func (f Field) Eq(val any) Conditioner {
|
||||
// EqualFold will use LOWER(column_name) = LOWER(val) for comparision
|
||||
func (f Field) EqFold(val string) Conditioner {
|
||||
col := f.String()
|
||||
return &Cond{Field: "LOWER(" + col + ")", Val: strings.ToLower(val), op: " = LOWER($", action: CondActionNeedToClose, len: len(col) + 5}
|
||||
return &Cond{Field: "LOWER(" + col + ")", Val: val, op: " = LOWER($", action: CondActionNeedToClose, len: len(col) + 5}
|
||||
}
|
||||
|
||||
func (f Field) NEq(val any) Conditioner {
|
||||
|
Reference in New Issue
Block a user