mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Field_varstring: Declare get_data() and get_length() as public
The underlying data members are declared public, so there is no point in hiding these const accessors.
This commit is contained in:
parent
a449f72a4c
commit
a07b537b39
1 changed files with 1 additions and 1 deletions
|
@ -3092,6 +3092,7 @@ private:
|
|||
|
||||
|
||||
class Field_varstring :public Field_longstr {
|
||||
public:
|
||||
uchar *get_data() const
|
||||
{
|
||||
return ptr + length_bytes;
|
||||
|
@ -3100,7 +3101,6 @@ class Field_varstring :public Field_longstr {
|
|||
{
|
||||
return length_bytes == 1 ? (uint) *ptr : uint2korr(ptr);
|
||||
}
|
||||
public:
|
||||
/*
|
||||
The maximum space available in a Field_varstring, in bytes. See
|
||||
length_bytes.
|
||||
|
|
Loading…
Reference in a new issue