|
@@ -47,7 +47,7 @@ type selectClause struct {
|
|
|
selectClause string
|
|
|
where string
|
|
|
orderBy string
|
|
|
- groupBy []string
|
|
|
+ groupBy string
|
|
|
having string
|
|
|
pageNo int
|
|
|
pageSize int
|
|
@@ -395,14 +395,14 @@ func parseLimit(limit *tree.Limit) (int, int, error) {
|
|
|
return pageNo, pageSize, nil
|
|
|
}
|
|
|
|
|
|
-func parseGroupBy(groupBy tree.GroupBy) []string {
|
|
|
+func parseGroupBy(groupBy tree.GroupBy) string {
|
|
|
groupBySlice := make([]string, 0)
|
|
|
|
|
|
for _, groupExpr := range groupBy {
|
|
|
groupBySlice = append(groupBySlice, groupExpr.String())
|
|
|
}
|
|
|
|
|
|
- return groupBySlice
|
|
|
+ return strings.Join(groupBySlice, ",")
|
|
|
}
|
|
|
|
|
|
func parseExpr(valueExpr tree.Expr) (*clauseTableRowValue, error) {
|