mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Two bugs in one! The count call was duplicating internally the counts for loaded tests (not autosql tests, just loaded). This could manifest itself by executing by file, or by executing a pre statement.
BUG#29803
This commit is contained in:
@@ -1407,15 +1407,15 @@ get_options(int *argc,char ***argv)
|
||||
tmp_string[sbuf.st_size]= '\0';
|
||||
my_close(data_file,MYF(0));
|
||||
if (user_supplied_pre_statements)
|
||||
actual_queries= parse_delimiter(tmp_string, &pre_statements,
|
||||
delimiter[0]);
|
||||
(void)parse_delimiter(tmp_string, &pre_statements,
|
||||
delimiter[0]);
|
||||
my_free(tmp_string, MYF(0));
|
||||
}
|
||||
else if (user_supplied_pre_statements)
|
||||
{
|
||||
actual_queries= parse_delimiter(user_supplied_pre_statements,
|
||||
&pre_statements,
|
||||
delimiter[0]);
|
||||
(void)parse_delimiter(user_supplied_pre_statements,
|
||||
&pre_statements,
|
||||
delimiter[0]);
|
||||
}
|
||||
|
||||
if (user_supplied_post_statements && my_stat(user_supplied_post_statements, &sbuf, MYF(0)))
|
||||
@@ -1438,14 +1438,14 @@ get_options(int *argc,char ***argv)
|
||||
tmp_string[sbuf.st_size]= '\0';
|
||||
my_close(data_file,MYF(0));
|
||||
if (user_supplied_post_statements)
|
||||
parse_delimiter(tmp_string, &post_statements,
|
||||
delimiter[0]);
|
||||
(void)parse_delimiter(tmp_string, &post_statements,
|
||||
delimiter[0]);
|
||||
my_free(tmp_string, MYF(0));
|
||||
}
|
||||
else if (user_supplied_post_statements)
|
||||
{
|
||||
parse_delimiter(user_supplied_post_statements, &post_statements,
|
||||
delimiter[0]);
|
||||
(void)parse_delimiter(user_supplied_post_statements, &post_statements,
|
||||
delimiter[0]);
|
||||
}
|
||||
|
||||
if (verbose >= 2)
|
||||
@@ -1993,7 +1993,6 @@ parse_delimiter(const char *script, statement **stmt, char delm)
|
||||
ptr+= retstr - ptr + 1;
|
||||
if (isspace(*ptr))
|
||||
ptr++;
|
||||
count++;
|
||||
}
|
||||
|
||||
if (ptr != script+length)
|
||||
|
Reference in New Issue
Block a user