diff --git a/search.go b/search.go index ec47bee2..bbc28131 100644 --- a/search.go +++ b/search.go @@ -141,8 +141,7 @@ func (s *search) getInterfaceAsSql(value interface{}) (str string) { s.db.err(InvalidSql) } - // Support field name with and without double quotes (useful when a field has a sql reserved word name) - if !regexp.MustCompile("^(\\s*\"[\\w\\s,.*\\+\\-()]*\"\\s*)$|^(\\s*\"?[\\w\\s,.*\\+\\-()]*\"?\\s*)$").MatchString(str) { + if regexp.MustCompile(";").MatchString(str) { s.db.err(InvalidSql) } return