On 9/9/16 4:48 AM, Andreas 'ads' Scherbaum wrote:
> ValidateDate() will tell you if it's a valid date. But not if the
> transformation was correct:
> postgres=# SELECT to_date('2011 12 18', 'YYYY MM DD');
> (1 row)
> (with the patch from Artur)
> Any idea how to solve this problem?
I think we need to do overflow checking as we read the various values,
in do_to_timestamp() and functions called from it. This would be very
similar to overflow checking in input functions.
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Sent via pgsql-hackers mailing list (email@example.com)
To make changes to your subscription: