跳至內容
選單
此問題已被標幟
2 回覆
5507 瀏覽次數
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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
2月 22
4094
3
7月 25
8558
1
6月 25
1770
3
7月 25
3376
1
5月 25
1526