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

Added SQL_CALC_FOUND_ROWS and FOUND_ROWS()

This commit is contained in:
monty@donna.mysql.fi
2001-04-12 00:54:35 +03:00
parent 8f62579c38
commit 417dd72856
14 changed files with 82 additions and 29 deletions

View File

@ -1092,6 +1092,8 @@ mysql_execute_command(void)
thd->select_limit=lex->select_limit+lex->offset_limit;
if (thd->select_limit < lex->select_limit)
thd->select_limit= HA_POS_ERROR; // no limit
if (thd->select_limit == HA_POS_ERROR)
lex->options&= ~OPTION_FOUND_ROWS;
if (lex->exchange)
{