1. 27 Feb, 2009 12 commits
    • Georgi Kodinov's avatar
      6b855610
    • Georgi Kodinov's avatar
      Bug #41610: key_infix_len can be overwritten causing some group by queries to · baf88385
      Georgi Kodinov authored
      return no rows
      
      The algorithm of determining the best key for loose index scan is doing a loop
      over the available indexes and selects the one that has the best cost.
      It retrieves the parameters of the current index into a set of variables.
      If the cost of using the current index is lower than the best cost so far it 
      copies these variables into another set of variables that contain the 
      information for the best index so far.
      After having checked all the indexes it uses these variables (outside of the 
      index loop) to create the table read plan object instance.
      The was a single omission : the key_infix/key_infix_len variables were used 
      outside of the loop without being preserved in the loop for the best index 
      so far.
      This causes these variables to get overwritten by the next index(es) checked.
      Fixed by adding variables to hold the data for the current index, passing 
      the new variables to the function that assigns values to them and copying 
      the new variables into the existing ones when selecting a new current best 
      index.
      To avoid further such problems moved the declarations of the variables used 
      to keep information about the current index inside the loop's compound 
      statement.
      
      mysql-test/r/group_min_max.result:
        Bug #41610: test case
      mysql-test/t/group_min_max.test:
        Bug #41610: test case
      sql/opt_range.cc:
        Bug #41610: copy the infix data for the current best index
      baf88385
    • Patrick Crews's avatar
    • Ingo Struewing's avatar
      auto-merge · f2dc3bca
      Ingo Struewing authored
      f2dc3bca
    • Ingo Struewing's avatar
      Bug#40446 - mysql-test-run --gcov is broken · 721f2ab7
      Ingo Struewing authored
      Some variable values were missing and perl constructs failed.
      
      Initialized the variables and refactored the gcov functions.
      
      
      .bzrignore:
        Bug#40446 - mysql-test-run --gcov is broken
        Added gcov log files.
      mysql-test/lib/mtr_gcov.pl:
        Bug#40446 - mysql-test-run --gcov is broken
        Refactored the gcov functions.
      mysql-test/mysql-test-run.pl:
        Bug#40446 - mysql-test-run --gcov is broken
        Initialized gcov variables.
        Added usage information.
      721f2ab7
    • Magnus Svensson's avatar
      Merge · c93c380b
      Magnus Svensson authored
      c93c380b
    • Patrick Crews's avatar
      merge. · f26b50dc
      Patrick Crews authored
      f26b50dc
    • Patrick Crews's avatar
      merge · 60ed24bd
      Patrick Crews authored
      60ed24bd
    • Patrick Crews's avatar
      Bug#41893: main.variables mysql-test fails in new variable like '%alloc%' is added. · 9040e57b
      Patrick Crews authored
      Added ORDER BY clause to I_S query to ensure consistent order.
      There were differences between 5.1 and 6.0 output.  Correcting it 5.1.
      9040e57b
    • Georgi Kodinov's avatar
      merged 5.0-bugteam -> 5.1-bugteam. · e7a54de4
      Georgi Kodinov authored
      Fixed a warning in 5.1 caused by missing type cast.
      e7a54de4
    • Patrick Crews's avatar
      Merge 5.0->5.1 · 2cc0c6b4
      Patrick Crews authored
      2cc0c6b4
    • Georgi Kodinov's avatar
  2. 26 Feb, 2009 11 commits
  3. 25 Feb, 2009 17 commits