Skip to content
Snippets Groups Projects
Commit b8709b67 authored by Hemming,J. (Jacob)'s avatar Hemming,J. (Jacob)
Browse files

changed LIKE and NOT LIKE value to %value%

parent 73200427
No related branches found
No related tags found
No related merge requests found
......@@ -57,9 +57,10 @@ func createConstraintBoolExpression(constraint *entity.QueryConstraintStruct, na
match = "!="
case "contains":
match = "LIKE"
value = fmt.Sprintf("\"%%%s%%\"", constraint.Value)
case "excludes":
match = "NOT LIKE"
value = fmt.Sprintf("\"%s%%\"", constraint.Value)
value = fmt.Sprintf("\"%%%s%%\"", constraint.Value)
default: //EQ
match = "=="
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment