File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -433,7 +433,8 @@ defmodule Ecto.Integration.PreloadTest do
433
433
TestRepo . all (
434
434
from c in CompositePk ,
435
435
join: cc in "composite_pk_composite_pk" ,
436
- 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 ,
436
+ on: cc . a_2 == c . a and cc . b_2 == c . b ,
437
+ where: cc . a_1 in ^ composite_ids_a and cc . b_1 in ^ composite_ids_b ,
437
438
order_by: [ c . a , c . b ] ,
438
439
select: map ( c , [ :name ] )
439
440
)
@@ -449,7 +450,8 @@ defmodule Ecto.Integration.PreloadTest do
449
450
TestRepo . all (
450
451
from c in CompositePk ,
451
452
join: cc in "composite_pk_composite_pk" ,
452
- 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 ,
453
+ on: cc . a_2 == c . a and cc . b_2 == c . b ,
454
+ where: cc . a_1 in ^ composite_ids_a and cc . b_1 in ^ composite_ids_b ,
453
455
order_by: [ c . a , c . b ] ,
454
456
select: { [ cc . a_1 , cc . b_1 ] , map ( c , [ :name ] ) }
455
457
)
You can’t perform that action at this time.
0 commit comments