提交 b1991f7f authored 作者: Bekrenev Dmitry's avatar Bekrenev Dmitry

Fix string_agg with 'order by'

上级 5174c527
...@@ -2311,12 +2311,12 @@ public class Parser { ...@@ -2311,12 +2311,12 @@ public class Parser {
agg = new Aggregate(Aggregate.GROUP_CONCAT, agg = new Aggregate(Aggregate.GROUP_CONCAT,
readExpression(), currentSelect, distinct); readExpression(), currentSelect, distinct);
read(","); read(",");
agg.setGroupConcatSeparator(readExpression());
if(readIf("ORDER")) { if(readIf("ORDER")) {
read("BY"); read("BY");
agg.setGroupConcatOrder(parseSimpleOrderList()); agg.setGroupConcatOrder(parseSimpleOrderList());
} }
agg.setGroupConcatSeparator(readExpression());
} }
r = agg; r = agg;
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论