Fix offset in deprecate_eof_cache_t iterating through inserted values

pull/4041/head
Javier Sánchez Parra 4 years ago
parent e4b349cf8e
commit b5b3dfb4ba

@ -141,9 +141,10 @@ int main(int argc, char** argv) {
// Load query rules to runtime
MYSQL_QUERY(proxy_admin, "LOAD MYSQL QUERY RULES TO RUNTIME");
for (auto id = 0; id < c_operations; id++) {
for (auto i = 0; i < c_operations; i++) {
int rnd_op = rand() % c_operations;
const auto id = i + 1;
const std::string& t_select_query = queries[0];
std::string select_query {};
string_format(t_select_query, select_query, id);

Loading…
Cancel
Save