diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 468b75c927f..0fec7ffc528 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -615,6 +615,8 @@ static void die(const char *fmt, ...) { va_list args; DBUG_ENTER("die"); + + /* Print the error message */ va_start(args, fmt); if (fmt) { @@ -629,6 +631,15 @@ static void die(const char *fmt, ...) fflush(stderr); } va_end(args); + + /* Dump the result that has been accumulated so far to reject file */ + if (result_file && ds_res.length) + { + + reject_dump(result_file, ds_res.str, ds_res.length); + } + + /* Clean up and exit */ free_used_memory(); my_end(MY_CHECK_ERROR); |