mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-17301 Change of COLLATE unnecessarily requires ALGORITHM=COPY
Patch is about two cases: 1) On some collate changes it's possible to rebuild only secondary indexes 2) For non-indexed columns collate can be changed INSTANTly Implemented mostly in Field_{string,varstring,blob}::is_equal(). Make this method return how exactly collationa differs. This information is later used by fill_alter_inplace_info() to pass correct info to engine.
This commit is contained in:
@ -167,7 +167,7 @@ public:
|
||||
*/
|
||||
LEX_CSTRING collation_specific_name() const;
|
||||
bool encoding_allows_reinterpret_as(CHARSET_INFO *cs) const;
|
||||
bool encoding_and_order_allow_reinterpret_as(CHARSET_INFO *cs) const;
|
||||
bool eq_collation_specific_names(CHARSET_INFO *cs) const;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user