diff options
author | Eugene Kosov <claprix@yandex.ru> | 2019-07-10 21:15:12 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2019-07-10 21:36:29 +0300 |
commit | a0230bc76d78202178f43d2f4f6a7e3322c19a16 (patch) | |
tree | 47d1bafa6345c7516cab8ae48a53ceca1ecd735c /sql/lex_string.h | |
parent | 70c2bde931246ea4966d82fa56773b8ef1e0074f (diff) | |
download | mariadb-git-a0230bc76d78202178f43d2f4f6a7e3322c19a16.tar.gz |
MDEV-18266 Changing an index comment unnecessarily rebuilds indexbb-10.4-MDEV-18266-index-comment
ALTER_CHANGE_INDEX_COMMENT: new handler flag added
Compare_keys::EqualButComment: new outcome of compare_keys_but_name()
Diffstat (limited to 'sql/lex_string.h')
-rw-r--r-- | sql/lex_string.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/lex_string.h b/sql/lex_string.h index a5209165be0..88a7154b064 100644 --- a/sql/lex_string.h +++ b/sql/lex_string.h @@ -37,6 +37,10 @@ static inline bool cmp(const LEX_CSTRING *a, const LEX_CSTRING *b) return (a->length != b->length || memcmp(a->str, b->str, a->length)); } +static inline bool cmp(const LEX_CSTRING a, const LEX_CSTRING b) +{ + return a.length != b.length || memcmp(a.str, b.str, a.length); +} /* Compare if two LEX_CSTRING are equal. Assumption is that |