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