You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
fix(rowgroup,stringstore): MCOL-5597 Set length for nullptr
string to 0. (#3027)
This commit is contained in:
@ -33,7 +33,8 @@ class ConstString
|
||||
public:
|
||||
ConstString(const char* str, size_t length) : mStr(str), mLength(length)
|
||||
{
|
||||
idbassert(mStr || mLength == 0); // nullptr mStr should have zero length.
|
||||
if (!mStr)
|
||||
mLength = 0;
|
||||
}
|
||||
explicit ConstString(const std::string& str) : mStr(str.data()), mLength(str.length())
|
||||
{
|
||||
|
Reference in New Issue
Block a user