Skip to content

Commit

Permalink
Fix warnings in preloader tests by adding explicit on-clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo B committed Apr 26, 2023
1 parent c686f91 commit 919d366
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions integration_test/cases/preload.exs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ defmodule Ecto.Integration.PreloadTest do
TestRepo.all(
from c in CompositePk,
join: cc in "composite_pk_composite_pk",
where: cc.a_1 in ^composite_ids_a and cc.b_1 in ^composite_ids_b and cc.a_2 == c.a and cc.b_2 == c.b,
on: cc.a_2 == c.a and cc.b_2 == c.b,
where: cc.a_1 in ^composite_ids_a and cc.b_1 in ^composite_ids_b,
order_by: [c.a, c.b],
select: map(c, [:name])
)
Expand All @@ -449,7 +450,8 @@ defmodule Ecto.Integration.PreloadTest do
TestRepo.all(
from c in CompositePk,
join: cc in "composite_pk_composite_pk",
where: cc.a_1 in ^composite_ids_a and cc.b_1 in ^composite_ids_b and cc.a_2 == c.a and cc.b_2 == c.b,
on: cc.a_2 == c.a and cc.b_2 == c.b,
where: cc.a_1 in ^composite_ids_a and cc.b_1 in ^composite_ids_b,
order_by: [c.a, c.b],
select: {[cc.a_1, cc.b_1], map(c, [:name])}
)
Expand Down

0 comments on commit 919d366

Please sign in to comment.