Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reusing the same version as Earthfile here

postgres:
- "16.2-alpine"
- "11.11-alpine"
Expand All @@ -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:
Expand All @@ -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"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lib/ecto/adapters/postgres/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,7 @@ if Code.ensure_loaded?(Postgrex) do

defp bitstring_literal(value) do
size = bit_size(value)
<<val::size(size)>> = value
<<val::size(^size)>> = value

[?b, ?', val |> Integer.to_string(2) |> String.pad_leading(size, ["0"]), ?']
end
Expand Down
8 changes: 6 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
Expand All @@ -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(),
Expand Down
Loading