Skip to content

Commit 3637802

Browse files
authored
Docs: Fix identifier docs unused variable (#4626)
1 parent 3b2d006 commit 3637802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ecto/query/api.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ defmodule Ecto.Query.API do
483483
Allows a dynamic identifier to be injected into a fragment:
484484
485485
collation = "es_ES"
486-
select("posts", [p], fragment("? COLLATE ?", p.title, identifier(^"es_ES")))
486+
select("posts", [p], fragment("? COLLATE ?", p.title, identifier(^collation)))
487487
488488
The example above will inject the value of `collation` directly
489489
into the query instead of treating it as a query parameter. It will

0 commit comments

Comments
 (0)