From a0230bc76d78202178f43d2f4f6a7e3322c19a16 Mon Sep 17 00:00:00 2001 From: Eugene Kosov Date: Wed, 10 Jul 2019 21:15:12 +0300 Subject: MDEV-18266 Changing an index comment unnecessarily rebuilds index ALTER_CHANGE_INDEX_COMMENT: new handler flag added Compare_keys::EqualButComment: new outcome of compare_keys_but_name() --- sql/lex_string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sql/lex_string.h') 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 -- cgit v1.2.1