fix multi order by error
This commit is contained in:
parent
97855f4bf4
commit
63b7c53d7f
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ abstract class Query<T, Where extends QueryWhere> extends QueryBase<T> {
|
||||||
b.write(' WHERE $whereClause');
|
b.write(' WHERE $whereClause');
|
||||||
}
|
}
|
||||||
if (_groupBy != null) b.write(' GROUP BY $_groupBy');
|
if (_groupBy != null) b.write(' GROUP BY $_groupBy');
|
||||||
var orderByClause = _orderBy.map(item.compile()).join(', ');
|
var orderByClause = _orderBy.map((order) => order.compile()).join(', ');
|
||||||
if (orderByClause?.isNotEmpty == true) {
|
if (orderByClause?.isNotEmpty == true) {
|
||||||
b.write(' ORDER BY $orderByClause');
|
b.write(' ORDER BY $orderByClause');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue