You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** (ArgumentError) Date.new!(10000, 1, 1) is beyond the maximum year 9999
(postgrex 0.18.0) lib/postgrex/extensions/date.ex:41: Postgrex.Extensions.Date.encode_elixir/1
(postgrex 0.18.0) lib/postgrex/type_module.ex:947: Postgrex.DefaultTypes.encode_params/3
Expected behavior
Elixir 1.17 allows a Date to be outside the -9999..9999 range.
Postgrex seems to have this maximum year (not a minimum…) hard-coded when dealing with Dates.
Should the handling of Dates be changed to be in accordance with the new way of handling years in Elixir 1.17? Or are there other constraints in play here that are imposed by Postgres?
The text was updated successfully, but these errors were encountered:
Elixir version
1.17.0
Database and Version
PostgreSQL 15.0
Postgrex Version
0.18.0
Current behavior
The last query results in
Expected behavior
Elixir 1.17 allows a Date to be outside the -9999..9999 range.
Postgrex seems to have this maximum year (not a minimum…) hard-coded when dealing with Dates.
Should the handling of Dates be changed to be in accordance with the new way of handling years in Elixir 1.17? Or are there other constraints in play here that are imposed by Postgres?
The text was updated successfully, but these errors were encountered: