MySQL Forums
Forum List  »  Connector/Python

Re: script crashes on last day of month but works every other day
Posted by: Peter Brawley
Date: May 01, 2022 05:01PM

What one might find odd isn't dispositive. You need to add error handling so you can find and fix script problems.

select '2022-05-02', current_date()+1, '2022-05-02'=current_date()+1;         
+------------+------------------+-------------------------------+
| 2022-05-02 | current_date()+1 | '2022-05-02'=current_date()+1 |
+------------+------------------+-------------------------------+
| 2022-05-02 |         20220502 |                             0 |
+------------+------------------+-------------------------------+



Edited 1 time(s). Last edit at 05/01/2022 05:44PM by Peter Brawley.

Options: ReplyQuote


Subject
Written By
Posted
Re: script crashes on last day of month but works every other day
May 01, 2022 05:01PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.