diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-09-29 07:58:42 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-09-29 07:58:42 -0300 |
commit | fc3740368aed05f95da167deda7544a91a904d3f (patch) | |
tree | 2f88cce9088e50566569406c02f2499103528857 /mysql-test/mysql-test-run.pl | |
parent | ecc556f492fdcc9a644edfb502b3b786c279bfa5 (diff) | |
download | mariadb-git-fc3740368aed05f95da167deda7544a91a904d3f.tar.gz |
Bug#45567: Fast ALTER TABLE broken for enum and set
The problem was that appending values to the end of an existing
ENUM or SET column was being treated as table data modification,
preventing a immediately (fast) table alteration that occurs when
only table metadata is being modified.
The cause was twofold: adding a enumeration or set members to the
end of the list of valid member values was not being considered
a "compatible" table alteration, and for SET columns, the check
was being done upon the max display length and not the underlying
(pack) length of the field.
The solution is to augment the function that checks wether two ENUM
or SET fields are compatible -- by comparing the pack lengths and
performing a limited comparison of the member values.
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
0 files changed, 0 insertions, 0 deletions