• unknown's avatar
    BUG#8924 'Explain' shows different strategy · 5b5a1239
    unknown authored
     - If number of records in table is 4, the calculated cost for using "index" and "range" become so close so that any rounding errors becomes visible.
     - Added one more record to the tables for heap test and expoect "range" to be selected
     - Decrease number of records in t1 for range and expect "index" to be choosen.
    
    
    mysql-test/r/heap.result:
      Add one more record to table t1 and expect explain to use "range"
    mysql-test/r/heap_btree.result:
      Add one more record to table t1 and expect explain to use "range"
    mysql-test/r/heap_hash.result:
      Add one more record to table t1 and expect explain to use "range"
    mysql-test/r/range.result:
      Update results
    mysql-test/t/heap.test:
      Add one more record to table t1 and expect explain to use "range"
    mysql-test/t/heap_btree.test:
      Add one more record to table t1 and expect explain to use "range"
    mysql-test/t/heap_hash.test:
      Add one more record to table t1 in order for optimizer to select use of "range" deterministic
    mysql-test/t/range.test:
      Remove one record from table t1 to avoid that cost for "index" and "range" are so close that rounding error become visible.
    5b5a1239
heap_hash.test 7.83 KB