1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

A fix (bug #6089: FOUND_ROWS returns wrong values when no table/view is used).

This commit is contained in:
ram@gw.mysql.r18.ru
2004-10-27 14:51:17 +05:00
parent cce8f5449d
commit 07743423f7
5 changed files with 45 additions and 2 deletions

View File

@ -1067,7 +1067,9 @@ JOIN::exec()
else
error=(int) result->send_eof();
}
thd->limit_found_rows= thd->examined_row_count= 0;
/* Single select (without union and limit) always returns 1 row */
thd->limit_found_rows= 1;
thd->examined_row_count= 0;
DBUG_VOID_RETURN;
}
thd->limit_found_rows= thd->examined_row_count= 0;