MySQL Forums
Forum List  »  Newbie

Re: Malformed date yet column still gets updated
Posted by: Peter Brawley
Date: January 29, 2015 02:55PM

"Illegal DATE, DATETIME, or TIMESTAMP values are converted to the “zero” value of the appropriate type ('0000-00-00' or '0000-00-00 00:00:00')." -- http://dev.mysql.com/doc/refman/5.6/en/datetime.html

Up through version 5.6.16, MySQL recognised NO_ZERO_DATE and NO_ZERO_IN_DATE sql_mode options. Now those options are deprecated and do nothing.

It's your responsibility to verify the validity of incoming data.

Options: ReplyQuote


Subject
Written By
Posted
Re: Malformed date yet column still gets updated
January 29, 2015 02:55PM


Sorry, you can't reply to this topic. It has been closed.

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.