@@ -601,7 +601,8 @@ defmodule Ecto.Query.PlannerTest do
601
601
602
602
test "plan: generates a cache key" do
603
603
{ _query , _cast_params , _dump_params , key } = plan ( from ( Post , [ ] ) )
604
- assert key == [ :all , { :from , { "posts" , Post , 23210922 , "my_prefix" } , [ ] } ]
604
+
605
+ assert key == [ :all , { :from , { "posts" , Post , 132715331 , "my_prefix" } , [ ] } ]
605
606
606
607
query =
607
608
from (
@@ -622,7 +623,6 @@ defmodule Ecto.Query.PlannerTest do
622
623
)
623
624
624
625
{ _query , _cast_params , _dump_params , key } = plan ( % { query | prefix: "foo" } )
625
- <<< <<< < HEAD
626
626
627
627
assert key == [
628
628
:all ,
@@ -634,19 +634,9 @@ defmodule Ecto.Query.PlannerTest do
634
634
[
635
635
{ :inner , { "comments" , Comment , 38_292_156 , "world" } , true , [ "join hint" ] }
636
636
] } ,
637
- { :from , { "posts" , Post , 50_009_106 , "hello" } , [ "hint" ] } ,
637
+ { :from , { "posts" , Post , 132715331 , "hello" } , [ "hint" ] } ,
638
638
{ :select , 1 }
639
639
]
640
- === === =
641
- assert key == [ :all ,
642
- { :lock , "foo" } ,
643
- { :prefix , "foo" } ,
644
- { :limit , { true , 1 } } ,
645
- { :where , [ { :and , { :is_nil , [ ] , [ nil ] } } , { :or , { :is_nil , [ ] , [ nil ] } } ] } ,
646
- { :join , [ { :inner , { "comments" , Comment , 38292156 , "world" } , true , [ "join hint" ] } ] } ,
647
- { :from , { "posts" , Post , 23210922 , "hello" } , [ "hint" ] } ,
648
- { :select , 1 } ]
649
- >>> >>> > e779c5c7 ( Fix tests)
650
640
end
651
641
652
642
test "plan: generates a cache key for in based on the adapter" do
@@ -966,7 +956,7 @@ defmodule Ecto.Query.PlannerTest do
966
956
[
967
957
:all ,
968
958
{ :aliases , % { post: 0 } } ,
969
- { :from , { "posts" , Ecto.Query.PlannerTest.Post , 50_009_106 , "my_prefix" } , [ ] } ,
959
+ { :from , { "posts" , Ecto.Query.PlannerTest.Post , 132715331 , "my_prefix" } , [ ] } ,
970
960
{ :select ,
971
961
{ { :%{} , [ ] ,
972
962
[
0 commit comments