修复mysql下group by 字段被替换成查询的column的问题
This commit is contained in:
parent
a2fe082f1a
commit
a7766eced1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue