node-postgres icon indicating copy to clipboard operation
node-postgres copied to clipboard

Fix: Add validation for invalid date query parameter values

Open abbas-ramish opened this issue 1 year ago • 0 comments

PR for Issue #3318

Issue Description: Currently, new Date(undefined) (an invalid date) is serialized as "0NaN-NaN-NaNTNaN:NaN:NaN.NaN+NaN:NaN". It should fail early with a JS error instead of being passed to the database.

abbas-ramish avatar Oct 12 '24 16:10 abbas-ramish