mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix garbage null values at end of histogram json
Signed-off-by: Michael Okoko <okokomichaels@outlook.com>
This commit is contained in:
committed by
Sergei Petrunia
parent
a378735862
commit
d4d539803b
@@ -1643,7 +1643,8 @@ public:
|
||||
}
|
||||
writer->end_array();
|
||||
histogram->set_size(bucket_bounds.size());
|
||||
histogram->set_values((uchar *) writer->output.get_string()->ptr());
|
||||
Binary_string *json_string = (Binary_string *) writer->output.get_string();
|
||||
histogram->set_values((uchar *) json_string->c_ptr());
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user