1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for bug #28631: Bit index creation failure after alter

Problem: altering a bit field we use Field::is_equal() to check if the bit 
field is changed. Comparing the field type is not enough for bit fields.
Fix: add proper Field_bit::is_equal() that compares the field lengths as well.
This commit is contained in:
ramil/ram@mysql.com/ramil.myoffice.izhnet.ru
2007-05-29 16:24:12 +05:00
parent 8a9fd5995e
commit 4f68dd9d78
4 changed files with 51 additions and 0 deletions

View File

@ -1552,6 +1552,7 @@ public:
bit_ptr == ((Field_bit *)field)->bit_ptr &&
bit_ofs == ((Field_bit *)field)->bit_ofs);
}
uint is_equal(create_field *new_field);
void move_field_offset(my_ptrdiff_t ptr_diff)
{
Field::move_field_offset(ptr_diff);