From 79ac92262e8caa6ecbcc82c8ec1a0f74c3502d78 Mon Sep 17 00:00:00 2001 From: Chris Keele Date: Sun, 14 Jun 2026 16:49:40 -0500 Subject: [PATCH] Don't check if DBConnection is loaded. --- lib/ecto/adapters/sql/sandbox.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ecto/adapters/sql/sandbox.ex b/lib/ecto/adapters/sql/sandbox.ex index 98614784f..5fb998525 100644 --- a/lib/ecto/adapters/sql/sandbox.ex +++ b/lib/ecto/adapters/sql/sandbox.ex @@ -341,9 +341,7 @@ defmodule Ecto.Adapters.SQL.Sandbox do defmodule Connection do @moduledoc false - if Code.ensure_loaded?(DBConnection) do - @behaviour DBConnection - end + @behaviour DBConnection def connect(_opts) do raise "should never be invoked"