Skip to content

Commit

Permalink
Update timestamptz out of bounds test
Browse files Browse the repository at this point in the history
See #689
  • Loading branch information
wojtekmach committed Jul 8, 2024
1 parent 0dfa7ef commit 25c07e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/calendar_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ defmodule CalendarTest do

test "decode timestamptz out of bounds", context do
%Postgrex.Error{postgres: %{message: message}} =
query("SELECT timestamp with time zone '4714-01-01BC 00:00:00.123456'", [])
query("SELECT $1::timestamptz", [~U[-4713-01-01 00:00:00Z]])

assert message =~ "timestamp out of range"
end
Expand Down

0 comments on commit 25c07e9

Please sign in to comment.