mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-19599 Change db_name, table_name to LEX_CSTRING in Item_ident and Send_field
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user