763
763
if (to->pack_length() == from->pack_length() &&
764
764
!(to->flags & UNSIGNED_FLAG && !(from->flags & UNSIGNED_FLAG)) &&
765
765
to->real_type() != DRIZZLE_TYPE_ENUM &&
767
767
from->charset() == to->charset() &&
768
768
to->table->s->db_low_byte_first == from->table->s->db_low_byte_first &&
769
769
(!(to->table->in_use->variables.sql_mode & (MODE_NO_ZERO_DATE | MODE_INVALID_DATES)) || (to->type() != DRIZZLE_TYPE_DATE && to->type() != DRIZZLE_TYPE_DATETIME)) &&