1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Fixed problem with WHERE key=const ORDER BY key DESC

This commit is contained in:
monty@hundin.mysql.fi
2002-03-15 21:30:50 +02:00
parent 93ab42f652
commit f0e835ac09
5 changed files with 23 additions and 15 deletions

View File

@ -126,8 +126,9 @@ int mysql_union(THD *thd, LEX *lex,select_result *result)
}
union_result->save_time_stamp=!describe;
for (sl=lex->select=&lex->select_lex;sl;sl=lex->select=sl->next)
for (sl= &lex->select_lex; sl; sl=sl->next)
{
lex->select=sl;
thd->offset_limit=sl->offset_limit;
thd->select_limit=sl->select_limit+sl->offset_limit;
if (thd->select_limit < sl->select_limit)