datetime defaults of '0000-00-00 00:00:00' to be removed?

Post Reply
pmaloney
Junior
Posts: 30
Joined: Wed Nov 08, 2023 2:57 am
United States of America

datetime defaults of '0000-00-00 00:00:00' to be removed?

Post by pmaloney »

Hi,

Any plans to remove the invalid datetime defaults?

The optimization script won't run on MySQL 8.2 without dropping those defaults. Generally, these defaults don't appear to be supported on current MySQL versions.

Regards, Patrick
User avatar
pgbennett
Developer
Posts: 565
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: datetime defaults of '0000-00-00 00:00:00' to be removed?

Post by pgbennett »

Usually, set sql_mode = ''; lets you use the invalid dates. I don't know if that still applies to 8.2.
Post Reply