Merge pull request #207 from seago/master

修复mysql下group by 字段被替换成查询的column的问题
This commit is contained in:
Lunny Xiao 2015-02-13 18:53:52 +08:00
commit 897fef0bde
1 changed files with 1 additions and 1 deletions

View File

@ -1190,7 +1190,7 @@ func (statement *Statement) genSelectSql(columnStr string) (a string) {
if columnStr == "" {
columnStr = statement.Engine.Quote(strings.Replace(statement.GroupByStr, ",", statement.Engine.Quote(","), -1))
}
statement.GroupByStr = columnStr
//statement.GroupByStr = columnStr
}
var distinct string
if statement.IsDistinct {