Skip to content

Commit

Permalink
Do not support JSON selectors on type, closes #3273
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Apr 8, 2020
1 parent 38b66d1 commit 96d59f0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/ecto/query/builder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ defmodule Ecto.Query.Builder do
escape_with_type(expr, type, params_acc, vars, env)
end

def escape({:type, _, [{{:., _, [Access, :get]}, _, _} = expr, type]}, _type, params_acc, vars, env) do
escape_with_type(expr, type, params_acc, vars, env)
end

def escape({:type, meta, [expr, type]}, given_type, params_acc, vars, env) do
case Macro.expand_once(expr, get_env(env)) do
^expr ->
Expand Down

0 comments on commit 96d59f0

Please sign in to comment.