Skip to content

Commit 9719089

Browse files
authored
Remove soft deprecated literal warning (#4660)
Every use of `literal/1` generates a warning that directs people to use `identifier/1` instead. According to the CHANGELOG, this is a soft deprecation and it shouldn't generate so much noise. Furthermore, this warning causes a great deal of noise for users of libraries that support multiple versions of Ecto.
1 parent 148c03c commit 9719089

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/ecto/query/builder.ex

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -760,11 +760,6 @@ defmodule Ecto.Query.Builder do
760760
env -> env
761761
end
762762

763-
IO.warn(
764-
"`literal/1` is deprecated. Please use `identifier/1` instead.",
765-
Macro.Env.stacktrace(env)
766-
)
767-
768763
escape_fragment({:identifier, meta, [expr]}, params_acc, vars, env)
769764
end
770765

0 commit comments

Comments
 (0)