node-postgres
node-postgres copied to clipboard
Fix: Add validation for invalid date query parameter values
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.