Skip to content

Commit

Permalink
Include not like on json case-insensitive search
Browse files Browse the repository at this point in the history
  • Loading branch information
KinyaElGrande authored and Fajfa committed Aug 22, 2023
1 parent b78bb7b commit 743d99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/store/adapters/rdbms/drivers/mysql/dialect.go
Expand Up @@ -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])
}
Expand Down

0 comments on commit 743d99e

Please sign in to comment.