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

Fixed bug that causes select test to fail

Now MySQL 4.1 is up to date with all patches from 4.0.4 and passes the test suite.
This commit is contained in:
monty@mashka.mysql.fi
2002-10-03 19:44:46 +03:00
parent 2e52a69b12
commit 61488a7b98
2 changed files with 2 additions and 2 deletions

View File

@ -2173,7 +2173,7 @@ find_best(JOIN *join,table_map rest_tables,uint idx,double record_count,
join->positions[idx].table= s;
if (!best_key && idx == join->const_tables &&
s->table == join->sort_by_table &&
join->thd->select_limit >= records)
join->unit->select_limit_cnt >= records)
join->sort_by_table= (TABLE*) 1; // Must use temporary table
/*