mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
cleanup: key parts comparison
Engine specific code moved to engine.
This commit is contained in:
@ -6953,6 +6953,20 @@ void handler::set_lock_type(enum thr_lock_type lock)
|
||||
table->reginfo.lock_type= lock;
|
||||
}
|
||||
|
||||
Compare_keys handler::compare_key_parts(const Field &old_field,
|
||||
const Column_definition &new_field,
|
||||
const KEY_PART_INFO &old_part,
|
||||
const KEY_PART_INFO &new_part) const
|
||||
{
|
||||
if (!old_field.is_equal(new_field))
|
||||
return Compare_keys::NotEqual;
|
||||
|
||||
if (old_part.length != new_part.length)
|
||||
return Compare_keys::NotEqual;
|
||||
|
||||
return Compare_keys::Equal;
|
||||
}
|
||||
|
||||
#ifdef WITH_WSREP
|
||||
/**
|
||||
@details
|
||||
|
Reference in New Issue
Block a user