2018-03-01 19:34 GMT+01:00 naidu rongali <rongalinaidu(at)gmail(dot)com>:
> Hi,
> I noticed this behavior on recent release of PG database. It will be
> helpful to users, if this behavior is looked into.
>
> When executed below SQL, got unintended output when i expected it to throw
> error " not a valid month "
>
> SQL executed:
> select to_date('20171231','YYYYDDMM')
>
> result:
> 2019-07-17
>
What is your version?
It should be fixed on PostgreSQL 10 and higher (there was not backport
because some applications used this feature)
Regards
Pavel
>
>
> Thank you, Naidu
>