From b96f1a477d143dcba5f5d81813c2445c4de345a2 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Nov 2006 14:32:00 +0400 Subject: [PATCH] Fix for bug #22913: mysql --quick doesn't report some errors. We don't check for errors that may occur during data printing. client/mysql.cc: Fix for bug #22913: mysql --quick doesn't report some errors. - check for errors after the data output. --- client/mysql.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/mysql.cc b/client/mysql.cc index 2f9031b84b8..fcdd63b31e6 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1988,6 +1988,8 @@ com_go(String *buffer,char *line __attribute__((unused))) (long) mysql_num_rows(result), (long) mysql_num_rows(result) == 1 ? "row" : "rows"); end_pager(); + if (mysql_errno(&mysql)) + error= put_error(&mysql); } } else if (mysql_affected_rows(&mysql) == ~(ulonglong) 0)