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

sql_select.cc:

if many plans have identical cost, which one will be used depends on how compiler optimizes floating-point calculations
  this fix adds repeatability to the optimizer
This commit is contained in:
serg@build.mysql.com
2004-07-17 16:15:32 +02:00
parent b93aa71d15
commit bc98177aaa

View File

@ -3614,7 +3614,7 @@ best_extension_by_limited_search(JOIN *join,
{
memcpy((gptr) join->best_positions, (gptr) join->positions,
sizeof(POSITION) * (idx + 1));
join->best_read= current_read_time;
join->best_read= current_read_time - 0.001;
}
DBUG_EXECUTE("opt",
print_plan(join, current_read_time, current_record_count, idx, "full_plan"););