1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Added resetting of replace_result patterns after --exec command in mysqltest (in order to be consistent with ordinary query execution).

This commit is contained in:
dlenev@mysql.com
2003-09-29 23:10:30 +04:00
parent 9b8b92faff
commit 573e5bffbf
2 changed files with 10 additions and 0 deletions

View File

@ -866,6 +866,10 @@ int do_exec(struct st_query* q)
while (fgets(buf, sizeof(buf), res_file))
replace_dynstr_append_mem(ds, buf, strlen(buf));
pclose(res_file);
if (glob_replace)
free_replace();
if (record)
{
if (!q->record_file[0] && !result_file)