1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for bug #22913: mysql --quick doesn't report some errors.

We don't check for errors that may occur during data printing.
This commit is contained in:
ramil/ram@mysql.com/myoffice.izhnet.ru
2006-11-02 14:32:00 +04:00
parent 728588da38
commit a072688eea

View File

@ -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)