mirror of
https://github.com/ent/ent.git
synced 2026-05-28 09:49:08 +03:00
dialect/sql/sqlgraph: allow selecting order by terms (#3439)
This commit is contained in:
@@ -2506,9 +2506,8 @@ func OrderByEdgeCount(t *testing.T, client *ent.Client) {
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, pet.Table, pet.OwnerColumn),
|
||||
),
|
||||
sqlgraph.OrderByExprDesc(nil, as),
|
||||
sqlgraph.OrderBySelected(),
|
||||
))
|
||||
// Append the value to be scanned.
|
||||
s.AppendSelect(as)
|
||||
}).
|
||||
AllX(ctx)
|
||||
require.Equal(t, 4, len(nodes))
|
||||
|
||||
Reference in New Issue
Block a user