diff --git a/client/mysql.cc b/client/mysql.cc index ea2c8663bb1..486e5bc113c 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -2106,6 +2106,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)