Include not like on json case-insensitive search
This commit is contained in:
committed by
Jože Fortun
parent
b78bb7b0ab
commit
743d99e6cc
@@ -241,7 +241,7 @@ func (d mysqlDialect) ExprHandler(n *ql.ASTNode, args ...exp.Expression) (expr e
|
||||
case "nin":
|
||||
return drivers.OpHandlerNotIn(d, n, args...)
|
||||
|
||||
case "like":
|
||||
case "like", "nlike":
|
||||
for a := range args {
|
||||
args[a] = exp.NewLiteralExpression("LOWER(?)", args[a])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user