Commit 2e219bfb authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Extend Protocol::store to accept a const String & as an argument

parent c2198fa8
......@@ -113,6 +113,8 @@ class Protocol
{ return store_longlong((longlong) from, 0); }
inline bool store(ulonglong from)
{ return store_longlong((longlong) from, 1); }
inline bool store(const String &str)
{ return store((char*) str.ptr(), str.length(), str.charset()); }
inline bool store(const String *str)
{ return store((char*) str->ptr(), str->length(), str->charset()); }
inline bool store(const LEX_CSTRING *from, CHARSET_INFO *cs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment