From 70ae76cbda36cd481163b4203899478ccc920579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 1 May 2024 09:05:45 +0200 Subject: [PATCH] Remote outdated tests on Ecto main --- test/ecto/adapters/myxql_test.exs | 10 ---------- test/ecto/adapters/postgres_test.exs | 10 ---------- test/ecto/adapters/tds_test.exs | 10 ---------- 3 files changed, 30 deletions(-) diff --git a/test/ecto/adapters/myxql_test.exs b/test/ecto/adapters/myxql_test.exs index 8cc5dd48..d84fc6c0 100644 --- a/test/ecto/adapters/myxql_test.exs +++ b/test/ecto/adapters/myxql_test.exs @@ -1152,16 +1152,6 @@ defmodule Ecto.Adapters.MyXQLTest do ~s{INNER JOIN `schema` AS s2 ON TRUE} end - test "join with invalid qualifier" do - assert_raise Ecto.QueryError, ~r/join qualifier :array is not supported/, fn -> - Schema - |> join(:array, [p], q in Schema2, on: p.x == q.z) - |> select([], true) - |> plan() - |> all() - end - end - test "join with hints" do assert Schema |> join(:inner, [p], q in Schema2, on: true, hints: ["USE INDEX FOO", "USE INDEX BAR"]) diff --git a/test/ecto/adapters/postgres_test.exs b/test/ecto/adapters/postgres_test.exs index 4ad150f1..f528622c 100644 --- a/test/ecto/adapters/postgres_test.exs +++ b/test/ecto/adapters/postgres_test.exs @@ -1494,16 +1494,6 @@ defmodule Ecto.Adapters.PostgresTest do ~s{INNER JOIN "schema" AS s2 ON TRUE} end - test "join with invalid qualifier" do - assert_raise Ecto.QueryError, ~r/join qualifier :array is not supported/, fn -> - Schema - |> join(:array, [p], q in Schema2, on: p.x == q.z) - |> select([], true) - |> plan() - |> all() - end - end - test "join with hints" do assert_raise Ecto.QueryError, ~r/table hints are not supported by PostgreSQL/, fn -> Schema diff --git a/test/ecto/adapters/tds_test.exs b/test/ecto/adapters/tds_test.exs index 4db73b28..dda71040 100644 --- a/test/ecto/adapters/tds_test.exs +++ b/test/ecto/adapters/tds_test.exs @@ -1045,16 +1045,6 @@ defmodule Ecto.Adapters.TdsTest do ~s{INNER JOIN [schema] AS s2 ON 1 = 1} end - test "join with invalid qualifier" do - assert_raise Ecto.QueryError, ~r/join qualifier :array is not supported/, fn -> - Schema - |> join(:array, [p], q in Schema2, on: p.x == q.z) - |> select([], true) - |> plan() - |> all() - end - end - test "join with hints" do assert Schema |> join(:inner, [p], q in Schema2, hints: ["USE INDEX FOO", "USE INDEX BAR"], on: true)