diff options
author | Alexander Barkov <bar@mariadb.com> | 2022-08-23 13:17:35 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2022-08-23 14:36:08 +0400 |
commit | 0e8544cd73c190dc4da0a3e83eefffe70bb3f755 (patch) | |
tree | 903c47248a13aa3f2036b75c8d5d804b85620586 /sql/sql_string.h | |
parent | 4feb9df105158eab216395db36ad5387d09d5cea (diff) | |
download | mariadb-git-0e8544cd73c190dc4da0a3e83eefffe70bb3f755.tar.gz |
MDEV-29355 Backport templatized INET6 implementation from 10.7 to 10.6
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r-- | sql/sql_string.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h index b398d4437ee..a8c29eba22c 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -484,6 +484,11 @@ public: if (str.Alloced_length) Alloced_length= (uint32) (str.Alloced_length - offset); } + LEX_CSTRING to_lex_cstring() const + { + LEX_CSTRING tmp= {Ptr, str_length}; + return tmp; + } inline LEX_CSTRING *get_value(LEX_CSTRING *res) { res->str= Ptr; |