Update scope.go
This commit is contained in:
parent
c05d72c879
commit
fa2095429b
2
scope.go
2
scope.go
@ -449,7 +449,7 @@ func (scope *Scope) callMethod(methodName string, reflectValue reflect.Value) {
|
||||
|
||||
var (
|
||||
columnRegexp = regexp.MustCompile("^[a-zA-Z\\d]+(\\.[a-zA-Z\\d]+)*$") // only match string like `name`, `users.name`
|
||||
isNumberRegexp = regexp.MustCompile("^\\s*\\d+\\s*$") // match if string is number
|
||||
isNumberRegexp = regexp.MustCompile("^\\s*\\d+\\s*$") // match if string is number
|
||||
comparisonRegexp = regexp.MustCompile("(?i) (=|<>|>|<|LIKE|IS|IN) ")
|
||||
countingQueryRegexp = regexp.MustCompile("(?i)^count(.+)$")
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user