Commit 524322ad authored by Michael Okoko's avatar Michael Okoko Committed by Sergei Petrunia

Properly initialize bucket bounds vector

Signed-off-by: default avatarMichael Okoko <okokomichaels@outlook.com>
parent d4d53980
......@@ -35,6 +35,7 @@
#include "my_json_writer.h"
#include <vector>
#include <string>
/*
The system variable 'use_stat_tables' can take one of the
......@@ -1595,7 +1596,7 @@ class Histogram_builder
class Histogram_builder_json : public Histogram_builder
{
std::vector<std::string> bucket_bounds;
std::vector<std::string> bucket_bounds = {};
public:
Histogram_builder_json(Field *col, uint col_len, ha_rows rows)
......@@ -1611,7 +1612,6 @@ std::vector<std::string> bucket_bounds;
count= 0;
count_distinct= 0;
count_distinct_single_occurence= 0;
bucket_bounds = {};
}
~Histogram_builder_json() override = default;
......
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