Skip to content

Commit

Permalink
Update lib/postgrex/extensions/interval.ex
Browse files Browse the repository at this point in the history
Co-authored-by: José Valim <[email protected]>
  • Loading branch information
greg-rychlewski and josevalim authored Aug 6, 2024
1 parent a6cc203 commit 1b1f1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/postgrex/extensions/interval.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ defmodule Postgrex.Extensions.Interval do
end

def decode(type) do
quote location: :keep do
quote location: :keep, generated: true do
<<16::int32(), microseconds::int64(), days::int32(), months::int32()>> ->
type_mod = var!(mod)
precision = if type_mod, do: type_mod &&& unquote(@precision_mask)
Expand Down

0 comments on commit 1b1f1fa

Please sign in to comment.