1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

fixed bug of unchecked random part of WHERE clause (bug #142)

This commit is contained in:
bell@sanja.is.com.ua
2003-03-11 18:34:00 +02:00
parent eedd907bde
commit b283e08cf3
3 changed files with 19 additions and 1 deletions

View File

@@ -2257,6 +2257,8 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
{
JOIN_TAB *tab=join->join_tab+i;
table_map current_map= tab->table->map;
if (i == join->tables-1)
current_map|= RAND_TABLE_BIT;
bool use_quick_range=0;
used_tables|=current_map;