修复mysql下group by 字段被替换成查询的column的问题

This commit is contained in:
seago 2015-02-13 14:40:08 +08:00
parent a2fe082f1a
commit a7766eced1
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 {