summaryrefslogtreecommitdiff
path: root/sql/lex_string.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-03-30 18:53:33 +0200
committerSergei Golubchik <serg@mariadb.org>2018-04-10 13:12:36 +0200
commit08a901cc0bc13e7d0794a691ed139aa611ccc872 (patch)
tree7b31f3c653c5b7e8debfdc88fd24222196a3fcb6 /sql/lex_string.h
parent0dcb47cae93b8b25a1c1bd7ca31e0d2432df89f3 (diff)
downloadmariadb-git-08a901cc0bc13e7d0794a691ed139aa611ccc872.tar.gz
cleanup: remove XString::operator== and !=
use named methods instead.
Diffstat (limited to 'sql/lex_string.h')
-rw-r--r--sql/lex_string.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/lex_string.h b/sql/lex_string.h
index 64c90bd2ac9..25f2c83a372 100644
--- a/sql/lex_string.h
+++ b/sql/lex_string.h
@@ -47,4 +47,13 @@ static inline bool lex_string_eq(const LEX_CSTRING *a, const LEX_CSTRING *b)
return strcasecmp(a->str, b->str) == 0;
}
+/*
+ Compare if two LEX_CSTRING are equal in system character set
+ (field names, user variables, etc - but *not* table names)
+*/
+static inline bool lex_string_syseq(const LEX_CSTRING *a, const LEX_CSTRING *b)
+{
+ return lex_string_cmp(system_charset_info, a, b) == 0;
+}
+
#endif /* LEX_STRING_INCLUDED */