Skip to content
Merged
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
3 changes: 2 additions & 1 deletion lib/ecto/query/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ defmodule Ecto.Query.API do

@doc """
Applies the given expression as a FILTER clause against an
aggregate. This is currently only supported by Postgres.
aggregate. Not all databases support this operation. Please
check your database documentation.

from p in Payment, select: filter(avg(p.value), p.value > 0 and p.value < 100)

Expand Down
3 changes: 2 additions & 1 deletion lib/ecto/query/window_api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ defmodule Ecto.Query.WindowAPI do

@doc """
Applies the given expression as a FILTER clause against an
aggregate. This is currently only supported by Postgres.
aggregate. Not all databases support this operation. Please
check your database documentation.

from p in Post,
select: avg(p.value)
Expand Down
Loading