5269
5268
If the '0000-00-00' value isn't allowed then raise the error_if_not_empty
5270
5269
flag to allow ALTER TABLE only if the table to be altered is empty.
5274
5272
def->sql_type == MYSQL_TYPE_DATETIME) &&
5275
5273
!alter_info->datetime_field &&
5276
5274
!(~def->flags & (NO_DEFAULT_VALUE_FLAG | NOT_NULL_FLAG)) &&