Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5473 มุมมอง
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
4059
3
ก.ค. 25
8482
1
มิ.ย. 25
1697
3
ก.ค. 25
3326
1
พ.ค. 25
1463