Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
5391 Переглядів
psycopg2.errors.DatetimeFieldOverflow: date/time field value out of range: "32-12-01"
LINE 5:                                 date >= '32-12-01' and
                                                ^
HINT:  Perhaps you need a different "datestyle" setting.


i see this when i try chenerating report, anyone can solve


Аватар
Відмінити
Найкраща відповідь

Hi,

In the shown value of the data, there is a 32, which i believe representing the day and we dont have a month with 32 days. So you have to check and see how you get this value and from the 32 is inputted and adjust the logic to be the day between 0 and 31.

Thanks

Аватар
Відмінити
Найкраща відповідь

Hi

Try using the query,
      SET datestyle = dmy;please refer this:https://stackoverflow.com/posts/29383758/edit

Hope it helps

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лют. 22
3985
3
лип. 25
8362
1
черв. 25
1546
3
лип. 25
3216
1
трав. 25
1368