Skip to content

Commit

Permalink
test: fix test application in CI
Browse files Browse the repository at this point in the history
fix: use proper sql implementation in `default_bindings`
  • Loading branch information
zachdaniel committed Apr 6, 2024
1 parent 09c2083 commit cfaf1f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/data_layer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1211,14 +1211,14 @@ defmodule AshPostgres.DataLayer do
nil ->
{:ok,
query
|> AshSql.Bindings.default_bindings(resource, AshSql.Implementation, context)
|> AshSql.Bindings.default_bindings(resource, AshPostgres.SqlImplementation, context)
|> Ecto.Query.exclude(:select)
|> Ecto.Query.exclude(:order_by)}

%{qual: :inner} ->
{:ok,
query
|> AshSql.Bindings.default_bindings(resource, AshSql.Implementation, context)
|> AshSql.Bindings.default_bindings(resource, AshPostgres.SqlImplementation, context)
|> Ecto.Query.exclude(:select)
|> Ecto.Query.exclude(:order_by)}

Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule AshPostgres.MixProject do
if Mix.env() == :test do
def application() do
[
applications: [:ecto, :ecto_sql, :jason, :ash, :postgrex, :tools, :benchee, :xmerl],
applications: [:ecto, :ecto_sql, :jason, :ash, :postgrex, :tools, :benchee, :xmerl, :ash_sql],
mod: {AshPostgres.TestApp, []}
]
end
Expand Down Expand Up @@ -154,7 +154,7 @@ defmodule AshPostgres.MixProject do
defp deps do
[
{:ash, ash_version("~> 3.0.0-rc")},
{:ash_sql, "~> 0.1.1-rc.3"},
{:ash_sql, "~> 0.1.1-rc"},
{:ecto_sql, "~> 3.9"},
{:ecto, "~> 3.9"},
{:jason, "~> 1.0"},
Expand Down

0 comments on commit cfaf1f8

Please sign in to comment.