Skip to content

Commit d355d2c

Browse files
committed
post rebase fixes
1 parent b1bee2a commit d355d2c

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

Diff for: lib/ecto/embedded.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ defmodule Ecto.Embedded do
170170

171171
{:embed, %{virtual: true}} ->
172172
acc
173-
end)
174-
end
173+
end
174+
end)
175175
end
176176

177177
defp prepare_each(%{cardinality: :one}, nil, _adapter, _repo, _repo_action) do

Diff for: test/ecto/query/planner_test.exs

+13-14
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ 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, 23210922, "my_prefix"}, []}]
604+
605+
assert key == [:all, {:from, {"posts", Post, 132715331, "my_prefix"}, []}]
605606

606607
query =
607608
from(
@@ -622,7 +623,6 @@ defmodule Ecto.Query.PlannerTest do
622623
)
623624

624625
{_query, _cast_params, _dump_params, key} = plan(%{query | prefix: "foo"})
625-
<<<<<<< HEAD
626626

627627
assert key == [
628628
:all,
@@ -634,19 +634,18 @@ defmodule Ecto.Query.PlannerTest do
634634
[
635635
{:inner, {"comments", Comment, 38_292_156, "world"}, true, ["join hint"]}
636636
]},
637-
{:from, {"posts", Post, 50_009_106, "hello"}, ["hint"]},
637+
{:from, {"posts", Post, 132715331, "hello"}, ["hint"]},
638638
{:select, 1}
639639
]
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)
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, 132715331, "hello"}, ["hint"]},
648+
{:select, 1}]
650649
end
651650

652651
test "plan: generates a cache key for in based on the adapter" do
@@ -966,7 +965,7 @@ defmodule Ecto.Query.PlannerTest do
966965
[
967966
:all,
968967
{:aliases, %{post: 0}},
969-
{:from, {"posts", Ecto.Query.PlannerTest.Post, 50_009_106, "my_prefix"}, []},
968+
{:from, {"posts", Ecto.Query.PlannerTest.Post, 132715331, "my_prefix"}, []},
970969
{:select,
971970
{{:%{}, [],
972971
[

0 commit comments

Comments
 (0)