Modify count regex to match parenthesis instead of starting a capture. Fixes #679

This commit is contained in:
Jason Seriff 2015-11-10 14:51:16 -06:00
parent 611e613459
commit a3c1fda757
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ func (scope *Scope) whereSql() (sql string) {
return
}
var hasCountRegexp = regexp.MustCompile(`(?i)count(.+)`)
var hasCountRegexp = regexp.MustCompile(`(?i)count\(.+\)`)
func (scope *Scope) selectSql() string {
if len(scope.Search.selects) == 0 {