@@ -74,16 +74,16 @@ func GetSQL(data Filter, config *SQLConfig) (string, []interface{}, error) {
74
74
case "greater" :
75
75
return fmt .Sprintf ("%s > ?" , data .Field ), []interface {}{data .Condition .Value }, nil
76
76
case "beginsWith" :
77
- search := "concat (?, '%')"
77
+ search := "CONCAT (?, '%')"
78
78
return fmt .Sprintf ("%s LIKE %s" , data .Field , search ), []interface {}{data .Condition .Value }, nil
79
79
case "notBeginsWith" :
80
- search := "concat (?, '%')"
80
+ search := "CONCAT (?, '%')"
81
81
return fmt .Sprintf ("%s NOT LIKE %s" , data .Field , search ), []interface {}{data .Condition .Value }, nil
82
82
case "endsWith" :
83
- search := "concat ('%', ?)"
83
+ search := "CONCAT ('%', ?)"
84
84
return fmt .Sprintf ("%s LIKE %s" , data .Field , search ), []interface {}{data .Condition .Value }, nil
85
85
case "notEndsWith" :
86
- search := "concat ('%', ?)"
86
+ search := "CONCAT ('%', ?)"
87
87
return fmt .Sprintf ("%s NOT LIKE %s" , data .Field , search ), []interface {}{data .Condition .Value }, nil
88
88
}
89
89
0 commit comments