@@ -601,7 +601,7 @@ defmodule Ecto.Query.PlannerTest do
601601
602602 test "plan: generates a cache key" do
603603 { _query , _cast_params , _dump_params , key } = plan ( from ( Post , [ ] ) )
604- assert key == [ :all , { :from , { "posts" , Post , 50_009_106 , "my_prefix" } , [ ] } ]
604+ assert key == [ :all , { :from , { "posts" , Post , 23210922 , "my_prefix" } , [ ] } ]
605605
606606 query =
607607 from (
@@ -622,6 +622,7 @@ defmodule Ecto.Query.PlannerTest do
622622 )
623623
624624 { _query , _cast_params , _dump_params , key } = plan ( % { query | prefix: "foo" } )
625+ <<< <<< < HEAD
625626
626627 assert key == [
627628 :all ,
@@ -636,6 +637,16 @@ defmodule Ecto.Query.PlannerTest do
636637 { :from , { "posts" , Post , 50_009_106 , "hello" } , [ "hint" ] } ,
637638 { :select , 1 }
638639 ]
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)
639650 end
640651
641652 test "plan: generates a cache key for in based on the adapter" do
0 commit comments