mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
dialect/sql/sqlgraph: fix bug in entql predicate evaluation (#1827)
This commit is contained in:
@@ -88,4 +88,10 @@ func EntQL(t *testing.T, client *ent.Client) {
|
||||
uq = client.User.Query()
|
||||
uq.Filter().WhereRole(entql.StringEQ(string(user.RoleAdmin)))
|
||||
require.Equal(a8m.ID, uq.OnlyIDX(ctx))
|
||||
|
||||
uq = client.User.Query()
|
||||
uq.Filter().WhereName(entql.StringEQ(a8m.Name))
|
||||
uq = uq.QueryFriends()
|
||||
uq.Filter().WhereName(entql.StringEQ(nati.Name))
|
||||
require.Equal(luna.ID, uq.QueryPets().OnlyIDX(ctx))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user