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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user