1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fixes for OPTION_FOUND_ROWS in UNION's

This commit is contained in:
Sinisa@sinisa.nasamreza.org
2003-09-13 19:56:58 +03:00
parent 0088e1c657
commit a26847c275
4 changed files with 8 additions and 5 deletions

View File

@@ -1729,7 +1729,7 @@ mysql_execute_command(THD *thd)
if (unit->select_limit_cnt <
(ha_rows) unit->global_parameters->select_limit)
unit->select_limit_cnt= HA_POS_ERROR; // no limit
if (unit->select_limit_cnt == HA_POS_ERROR)
if (unit->select_limit_cnt == HA_POS_ERROR && !select_lex->next_select())
select_lex->options&= ~OPTION_FOUND_ROWS;
if (!(res=open_and_lock_tables(thd,tables)))