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
{{ message }}
Repository navigation
Infinite range bounds are not handled correctly #8192
I'm wanting to filter a table on a Sequelize.Range(Sequelize.Date) with an infinite bound, but it appears that the SQL generator tries to convert the "null" range bound to a date, prior to building the range literal.
A quick look at RANGE.prototype._stringify() in lib/dialects/postgres/data-types.js the null range bound is incorrectly passed to the subtype stringify() function BEFORE it's been checked for null or Infinity/-Infinity. For Sequelize.RANGE(Sequelize.DATE) ranges, this results in the null range bound being stringified to "Invalid Date", which ends up being used in the range literal in the generated SQL:
Activity
fix(datatypes): don't stringify range bounds when infinite (fixes: se…
fix(datatypes): don't stringify range bounds when infinite (fixes: se…
fix(datatypes/range): don't stringify infinite and null bounds (fixes: …