Commit a3787358 authored by Michael Okoko's avatar Michael Okoko Committed by Sergei Petrunia

Fix garbage null values at end of json array elements

Signed-off-by: default avatarMichael Okoko <okokomichaels@outlook.com>
parent 9954aecc
This diff is collapsed.
...@@ -1629,7 +1629,7 @@ std::vector<std::string> bucket_bounds; ...@@ -1629,7 +1629,7 @@ std::vector<std::string> bucket_bounds;
column->store_field_value((uchar *) elem, col_length); column->store_field_value((uchar *) elem, col_length);
StringBuffer<MAX_FIELD_WIDTH> val; StringBuffer<MAX_FIELD_WIDTH> val;
column->val_str(&val); column->val_str(&val);
bucket_bounds.emplace_back(val.ptr()); bucket_bounds.emplace_back(val.c_ptr());
curr_bucket++; curr_bucket++;
} }
return 0; return 0;
......
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