summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-07-24 13:10:24 +0200
committerunknown <msvensson@neptunus.(none)>2006-07-24 13:10:24 +0200
commita08a1108789da8860bca8a2eaad94fd071b22d88 (patch)
tree832e76b6da5c38b5e773ce5f9327edee35fe1083 /client
parent6fc7c5d9e021b3e09eae1eeeae04973b7c74e304 (diff)
downloadmariadb-git-a08a1108789da8860bca8a2eaad94fd071b22d88.tar.gz
Bug#21215 mysqldump creating incomplete backups without warning
- Add call to 'safe_exit' function when db query fails. client/mysqldump.c: Add a call to 'safe_exit' to remember the error code and exit unless --force was give.n mysql-test/r/mysqldump.result: Add test result mysql-test/t/mysqldump.test: Add test case
Diffstat (limited to 'client')
-rw-r--r--client/mysqldump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index ad350075534..2f4a5b46cd4 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -872,6 +872,7 @@ static int mysql_query_with_error_report(MYSQL *mysql_con, MYSQL_RES **res,
{
my_printf_error(0, "Couldn't execute '%s': %s (%d)", MYF(0),
query, mysql_error(mysql_con), mysql_errno(mysql_con));
+ safe_exit(EX_MYSQLERR);
return 1;
}
return 0;