diff options
author | msvensson@shellback.(none) <> | 2006-03-23 18:14:02 +0100 |
---|---|---|
committer | msvensson@shellback.(none) <> | 2006-03-23 18:14:02 +0100 |
commit | b5bea5e3127ebbe66e73fe7f2da3f900a0c78d52 (patch) | |
tree | 3fd1e2156dd299a938987353733dae853ddf3223 /client | |
parent | add4b40ebe4b8a3ed77b999fac00901a1cab94cd (diff) | |
parent | f4426c0d3d541e8c9279862e87c0e784019643d1 (diff) | |
download | mariadb-git-b5bea5e3127ebbe66e73fe7f2da3f900a0c78d52.tar.gz |
Merge shellback.(none):/home/msvensson/mysql/mysql-5.0
into shellback.(none):/home/msvensson/mysql/mysql-5.1
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index a223081cf3f..95134204ffb 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -654,6 +654,8 @@ static void die(const char *fmt, ...) { va_list args; DBUG_ENTER("die"); + + /* Print the error message */ va_start(args, fmt); if (fmt) { @@ -668,6 +670,12 @@ 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) + dump_result_to_reject_file(result_file, ds_res.str, ds_res.length); + + /* Clean up and exit */ free_used_memory(); my_end(MY_CHECK_ERROR); |