diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-08-13 18:57:00 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-08-13 18:57:00 +0300 |
commit | 624dd71b9419555eca8baadc695e3376de72286f (patch) | |
tree | 31aaab8aeac43f921638407ab82190dd05a72793 /sql/lex_string.h | |
parent | d4d865fcc8083782b6e4419c69bec372cd0b4142 (diff) | |
parent | e9c1701e11e2441435223cc7c00c467f58aaff19 (diff) | |
download | mariadb-git-624dd71b9419555eca8baadc695e3376de72286f.tar.gz |
Merge 10.4 into 10.5
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 8579c00fe36..a62609c6b60 100644 --- a/sql/lex_string.h +++ b/sql/lex_string.h @@ -75,6 +75,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 |