1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Merge polly.(none):/home/kaa/src/opt/bug30666/my50-bug29131

into  polly.(none):/home/kaa/src/opt/bug30666/my51-bug29131
This commit is contained in:
kaa@polly.(none)
2007-11-12 11:26:31 +03:00
3 changed files with 78 additions and 4 deletions

View File

@ -6282,10 +6282,9 @@ make_join_readinfo(JOIN *join, ulonglong options)
ordered. If there is a temp table the ordering is done as a last
operation and doesn't prevent join cache usage.
*/
if (!ordered_set && !join->need_tmp &&
((table == join->sort_by_table &&
(!join->order || join->skip_sort_order)) ||
(join->sort_by_table == (TABLE *) 1 && i != join->const_tables)))
if (!ordered_set && !join->need_tmp &&
(table == join->sort_by_table ||
(join->sort_by_table == (TABLE *) 1 && i != join->const_tables)))
ordered_set= 1;
tab->sorted= sorted;