mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fix over-optimization that could result in an unsigned double field being
set to a negative value. (Bug #7700)
This commit is contained in:
@ -537,6 +537,7 @@ void field_conv(Field *to,Field *from)
|
||||
if (to->real_type() == from->real_type())
|
||||
{
|
||||
if (to->pack_length() == from->pack_length() &&
|
||||
!(to->flags & UNSIGNED_FLAG && !(from->flags & UNSIGNED_FLAG)) &&
|
||||
to->real_type() != FIELD_TYPE_ENUM &&
|
||||
to->real_type() != FIELD_TYPE_SET &&
|
||||
to->table->db_low_byte_first == from->table->db_low_byte_first)
|
||||
|
Reference in New Issue
Block a user