From 919d366fb17fe78743ca54aa1300f4e5897338f6 Mon Sep 17 00:00:00 2001 From: Leo B Date: Wed, 26 Apr 2023 09:05:53 +0200 Subject: [PATCH] Fix warnings in preloader tests by adding explicit on-clauses --- integration_test/cases/preload.exs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/integration_test/cases/preload.exs b/integration_test/cases/preload.exs index a441cf7753..11f2d06139 100644 --- a/integration_test/cases/preload.exs +++ b/integration_test/cases/preload.exs @@ -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]) ) @@ -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])} )