1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-18010 Add classes Inet4 and Inet6

This commit is contained in:
Alexander Barkov
2018-12-14 11:30:34 +04:00
parent 3b8c868aa1
commit 375256bae7
3 changed files with 343 additions and 279 deletions

View File

@ -119,16 +119,10 @@ public:
:m_string_ptr(str)
{ }
String_ptr(Item *item, String *buffer);
const String *string() const { return m_string_ptr; }
const char *ptr() const
const String *string() const
{
DBUG_ASSERT(m_string_ptr);
return m_string_ptr->ptr();
}
uint32 length() const
{
DBUG_ASSERT(m_string_ptr);
return m_string_ptr->length();
return m_string_ptr;
}
bool is_null() const { return m_string_ptr == NULL; }
};