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" 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 diff --git a/mix.exs b/mix.exs index 0013472e..2fa8d58e 100644 --- a/mix.exs +++ b/mix.exs @@ -9,9 +9,10 @@ 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")), + test_ignore_filters: [&String.starts_with?(&1, "test/support/")], xref: [ exclude: [ MyXQL, @@ -30,7 +31,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 +50,10 @@ defmodule EctoSQL.MixProject do ] end + def cli do + [preferred_envs: ["test.all": :test, "test.adapters": :test]] + end + defp deps do [ ecto_dep(),