From 5979ab2130fe8a5d80f5f029287e73dc924e342b Mon Sep 17 00:00:00 2001 From: sabiwara Date: Wed, 14 Jan 2026 20:55:33 +0900 Subject: [PATCH 1/5] Bump ELIXIR_BASE in CI --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 49c43ed6..627c10f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: fail-fast: false matrix: elixirbase: - - "1.14.5-erlang-23.3.4.9-alpine-3.16.9" + - "1.15.6-erlang-25.3.2.6-alpine-3.18.4" postgres: - "16.2-alpine" - "11.11-alpine" @@ -61,7 +61,7 @@ jobs: pool_count: - "1" include: - - elixirbase: "1.14.5-erlang-23.3.4.9-alpine-3.16.9" + - elixirbase: "1.15.6-erlang-25.3.2.6-alpine-3.18.4" postgres: "16.2-alpine" pool_count: "4" steps: @@ -79,7 +79,7 @@ jobs: fail-fast: false matrix: elixirbase: - - "1.14.5-erlang-23.3.4.9-alpine-3.16.9" + - "1.15.6-erlang-25.3.2.6-alpine-3.18.4" mysql: - "5.7" - "8.0" @@ -96,7 +96,7 @@ jobs: fail-fast: false matrix: elixirbase: - - "1.14.5-erlang-23.3.4.9-alpine-3.16.9" + - "1.15.6-erlang-25.3.2.6-alpine-3.18.4" mssql: - "2019" - "2022" From 9ad5e7e24dfe1ccd75de731115e3358b3edd1acf Mon Sep 17 00:00:00 2001 From: sabiwara Date: Wed, 14 Jan 2026 20:56:38 +0900 Subject: [PATCH 2/5] Require Elixir 1.15 --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 0013472e..cf93c987 100644 --- a/mix.exs +++ b/mix.exs @@ -9,7 +9,7 @@ defmodule EctoSQL.MixProject do [ app: :ecto_sql, version: @version, - elixir: "~> 1.14", + elixir: "~> 1.15", deps: deps(), test_paths: test_paths(System.get_env("ECTO_ADAPTER")), xref: [ From 88dcbd8bc3e5257d70fab2d0b9efcb3f357c126d Mon Sep 17 00:00:00 2001 From: sabiwara Date: Wed, 14 Jan 2026 20:57:59 +0900 Subject: [PATCH 3/5] Address deprecated preferred_cli_env warning --- mix.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index cf93c987..898acfac 100644 --- a/mix.exs +++ b/mix.exs @@ -30,7 +30,6 @@ defmodule EctoSQL.MixProject do "test.adapters": &test_adapters/1, "test.as_a_dep": &test_as_a_dep/1 ], - preferred_cli_env: ["test.all": :test, "test.adapters": :test], # Hex description: "SQL-based adapters for Ecto and database migrations", @@ -50,6 +49,10 @@ defmodule EctoSQL.MixProject do ] end + def cli do + [preferred_envs: ["test.all": :test, "test.adapters": :test]] + end + defp deps do [ ecto_dep(), From 97f3f2b7a51f2eaf91cab9e99dbc177232613fea Mon Sep 17 00:00:00 2001 From: sabiwara Date: Wed, 14 Jan 2026 20:59:51 +0900 Subject: [PATCH 4/5] Fix warning about missing pin operator in bitstring pattern --- lib/ecto/adapters/postgres/connection.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ecto/adapters/postgres/connection.ex b/lib/ecto/adapters/postgres/connection.ex index c7f6282b..b2938e9e 100644 --- a/lib/ecto/adapters/postgres/connection.ex +++ b/lib/ecto/adapters/postgres/connection.ex @@ -1991,7 +1991,7 @@ if Code.ensure_loaded?(Postgrex) do defp bitstring_literal(value) do size = bit_size(value) - <> = value + <> = value [?b, ?', val |> Integer.to_string(2) |> String.pad_leading(size, ["0"]), ?'] end From de008597598672ed95fdbc936f48dbdc13d8a959 Mon Sep 17 00:00:00 2001 From: sabiwara Date: Wed, 14 Jan 2026 21:06:55 +0900 Subject: [PATCH 5/5] Add test_ignore_filters to fix warning --- mix.exs | 1 + 1 file changed, 1 insertion(+) diff --git a/mix.exs b/mix.exs index 898acfac..2fa8d58e 100644 --- a/mix.exs +++ b/mix.exs @@ -12,6 +12,7 @@ defmodule EctoSQL.MixProject do elixir: "~> 1.15", deps: deps(), test_paths: test_paths(System.get_env("ECTO_ADAPTER")), + test_ignore_filters: [&String.starts_with?(&1, "test/support/")], xref: [ exclude: [ MyXQL,