Merge pull request #207 from seago/master
修复mysql下group by 字段被替换成查询的column的问题
This commit is contained in:
commit
897fef0bde
|
@ -1190,7 +1190,7 @@ func (statement *Statement) genSelectSql(columnStr string) (a string) {
|
||||||
if columnStr == "" {
|
if columnStr == "" {
|
||||||
columnStr = statement.Engine.Quote(strings.Replace(statement.GroupByStr, ",", statement.Engine.Quote(","), -1))
|
columnStr = statement.Engine.Quote(strings.Replace(statement.GroupByStr, ",", statement.Engine.Quote(","), -1))
|
||||||
}
|
}
|
||||||
statement.GroupByStr = columnStr
|
//statement.GroupByStr = columnStr
|
||||||
}
|
}
|
||||||
var distinct string
|
var distinct string
|
||||||
if statement.IsDistinct {
|
if statement.IsDistinct {
|
||||||
|
|
Loading…
Reference in New Issue