Skip to content

Commit

Permalink
Add shift operators
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigitsu committed Nov 25, 2023
1 parent 3dc8ee0 commit d5b6c97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ecto/query/builder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ defmodule Ecto.Query.Builder do
* fields, such as p.foo or field(p, :foo)
* fragments, such as fragment("foo(?)", value)
* an arithmetic expression (+, -, *, /)
* a bitwise expression (&&&, |||)
* a bitwise expression (&&&, |||, <<<, >>>)
* an aggregation or window expression (avg, count, min, max, sum, over, filter)
* a conditional expression (coalesce)
* access/json paths (p.column[0].field)
Expand Down Expand Up @@ -348,7 +348,7 @@ defmodule Ecto.Query.Builder do

# bitwise operators
def escape({bitwise_op, _, [left, right]}, type, params_acc, vars, env)
when bitwise_op in ~w(&&& |||)a do
when bitwise_op in ~w(&&& ||| <<< >>>)a do
{left, params_acc} = escape(left, type, params_acc, vars, env)
{right, params_acc} = escape(right, type, params_acc, vars, env)

Expand Down

0 comments on commit d5b6c97

Please sign in to comment.