diff --git a/client/mysqltest.c b/client/mysqltest.c index 3b83fdb56fc..e851c9dac89 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -1987,7 +1987,7 @@ void var_set_query_get_value(struct st_command *command, VAR *var) while ((row= mysql_fetch_row(res))) { - if (++rows == (ulong) row_no) + if (++rows == row_no) { DBUG_PRINT("info", ("At row %ld, column %d is '%s'",