diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-05-26 06:17:35 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-05-26 09:49:13 +0400 |
commit | 9f23f8e59807f8ebc6a45e176332f33e2ac09d6c (patch) | |
tree | b459d361418a73d3e274a73d4122bf6e4cf6575b /sql/vers_string.h | |
parent | ac93d7d674cd9955c940055d9777e98a1fbaf1cd (diff) | |
download | mariadb-git-9f23f8e59807f8ebc6a45e176332f33e2ac09d6c.tar.gz |
MDEV-19599 Change db_name, table_name to LEX_CSTRING in Item_ident and Send_field
Diffstat (limited to 'sql/vers_string.h')
-rw-r--r-- | sql/vers_string.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sql/vers_string.h b/sql/vers_string.h index d792a60b8fc..e242036b53c 100644 --- a/sql/vers_string.h +++ b/sql/vers_string.h @@ -53,11 +53,6 @@ class Lex_cstring : public LEX_CSTRING str= NULL; length= 0; } - Lex_cstring(const char *_str) - { - str= _str; - length= strlen(_str); - } Lex_cstring(const char *_str, size_t _len) { str= _str; @@ -76,6 +71,16 @@ class Lex_cstring : public LEX_CSTRING } }; + +class Lex_cstring_strlen: public Lex_cstring +{ +public: + Lex_cstring_strlen(const char *from) + :Lex_cstring(from, from ? strlen(from) : 0) + { } +}; + + template <class Compare> struct Lex_cstring_with_compare : public Lex_cstring { |