![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
sir, in postgresql 7.3.2 when we are trying to query like select to_date('665555555','ddmmyyyy'); the output is 5559-09-06 it is not validating the day and month and unknown format is the output.. any help regarding this is greatful... thank you ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings |
#3
| |||
| |||
|
|
I don't see the problem... you are specifying the 66th day of the 55th month in the year 5555. just a cursory glance says that 48 months is 4 years... that gives the year as 5559. try your example with real numbers (unless these are real) |
#4
| |||
| |||
|
|
But there is no 55th month and no 66th day of that month, the conversion should simply fail and abort the transaction with an error, shouldn't it ? |
#5
| |||
| |||
|
|
Michael van Elst <mlelstv (AT) serpens (DOT) de> writes: But there is no 55th month and no 66th day of that month, the conversion should simply fail and abort the transaction with an error, shouldn't it ? I believe this is an acknowledged bug in to_date, which Karel hasn't yet got around to fixing. |
![]() |
| Thread Tools | |
| Display Modes | |
| |