mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-31992 Automatic conversion from LEX_STRING to LEX_CSTRING
- Adding automatic conversion operator from LEX_STRING to LEX_CSTRING Now a LEX_STRING can be passed directly to any function expecting a LEX_CSTRING parameter passed by value or by reference. - Removing a number of duplicate methods accepting LEX_STRING. Now the code used the LEX_CSTRING version.
This commit is contained in:
@@ -57,9 +57,6 @@ public:
|
||||
Lex_cstring_with_compare(const char *_str, size_t _len) :
|
||||
Lex_cstring(_str, _len)
|
||||
{ }
|
||||
Lex_cstring_with_compare(const LEX_STRING src) :
|
||||
Lex_cstring(src.str, src.length)
|
||||
{ }
|
||||
Lex_cstring_with_compare(const LEX_CSTRING src) : Lex_cstring(src.str, src.length)
|
||||
{ }
|
||||
Lex_cstring_with_compare(const char *_str) : Lex_cstring(_str, strlen(_str))
|
||||
|
Reference in New Issue
Block a user