Skip to content
Merged
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
2 changes: 1 addition & 1 deletion lib/ecto/query/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ defmodule Ecto.Query.API do
Allows a dynamic identifier to be injected into a fragment:

collation = "es_ES"
select("posts", [p], fragment("? COLLATE ?", p.title, identifier(^"es_ES")))
select("posts", [p], fragment("? COLLATE ?", p.title, identifier(^collation)))

The example above will inject the value of `collation` directly
into the query instead of treating it as a query parameter. It will
Expand Down
Loading