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

Fixes for offset bug in UNION's and making UNION's obey

SELECT_DEFAULT_LIMIT
This commit is contained in:
Sinisa@sinisa.nasamreza.org
2002-03-22 13:26:13 +02:00
parent a36bb38be2
commit 8766627d73
4 changed files with 28 additions and 1 deletions

View File

@ -186,7 +186,10 @@ int mysql_union(THD *thd, LEX *lex,select_result *result)
thd->options&= ~OPTION_FOUND_ROWS;
}
else
thd->select_limit= HA_POS_ERROR; // no limit
{
thd->offset_limit= 0;
thd->select_limit= thd->default_select_limit;
}
if (describe)
thd->select_limit= HA_POS_ERROR; // no limit
res=mysql_select(thd,&result_table_list,