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

We don't check for errors that may occur during data printing.
parent 728588da
...@@ -1988,6 +1988,8 @@ com_go(String *buffer,char *line __attribute__((unused))) ...@@ -1988,6 +1988,8 @@ com_go(String *buffer,char *line __attribute__((unused)))
(long) mysql_num_rows(result), (long) mysql_num_rows(result),
(long) mysql_num_rows(result) == 1 ? "row" : "rows"); (long) mysql_num_rows(result) == 1 ? "row" : "rows");
end_pager(); end_pager();
if (mysql_errno(&mysql))
error= put_error(&mysql);
} }
} }
else if (mysql_affected_rows(&mysql) == ~(ulonglong) 0) else if (mysql_affected_rows(&mysql) == ~(ulonglong) 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment