summaryrefslogtreecommitdiff
path: root/sql/lex_string.h
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2019-07-10 21:15:12 +0300
committerEugene Kosov <claprix@yandex.ru>2019-07-10 21:36:29 +0300
commita0230bc76d78202178f43d2f4f6a7e3322c19a16 (patch)
tree47d1bafa6345c7516cab8ae48a53ceca1ecd735c /sql/lex_string.h
parent70c2bde931246ea4966d82fa56773b8ef1e0074f (diff)
downloadmariadb-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.h4
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