Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Rychlewski authored and Greg Rychlewski committed Aug 6, 2024
1 parent 6d16321 commit a6cc203
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/postgrex/extensions/interval.ex
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ defmodule Postgrex.Extensions.Interval do
def decode(type) do
quote location: :keep do
<<16::int32(), microseconds::int64(), days::int32(), months::int32()>> ->
precision = if var!(mod), do: var!(mod) &&& unquote(@precision_mask)
type_mod = var!(mod)
precision = if type_mod, do: type_mod &&& unquote(@precision_mask)

unquote(__MODULE__).decode_interval(
microseconds,
Expand Down

0 comments on commit a6cc203

Please sign in to comment.