1. 27 Feb, 2009 12 commits
    • Georgi Kodinov's avatar
      2bc070a0
    • Georgi Kodinov's avatar
      Bug #41610: key_infix_len can be overwritten causing some group by queries to · 15760fe9
      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
      15760fe9
    • Patrick Crews's avatar
    • Ingo Struewing's avatar
      auto-merge · 34143e4e
      Ingo Struewing authored
      34143e4e
    • Ingo Struewing's avatar
      Bug#40446 - mysql-test-run --gcov is broken · 9573707f
      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.
      9573707f
    • Magnus Svensson's avatar
      Merge · fd0aaee2
      Magnus Svensson authored
      fd0aaee2
    • Patrick Crews's avatar
      merge. · 1dc084f3
      Patrick Crews authored
      1dc084f3
    • Patrick Crews's avatar
      merge · 897ea374
      Patrick Crews authored
      897ea374
    • Patrick Crews's avatar
      Bug#41893: main.variables mysql-test fails in new variable like '%alloc%' is added. · 1f847d16
      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.
      1f847d16
    • Georgi Kodinov's avatar
      merged 5.0-bugteam -> 5.1-bugteam. · f7f0e8b4
      Georgi Kodinov authored
      Fixed a warning in 5.1 caused by missing type cast.
      f7f0e8b4
    • Patrick Crews's avatar
      Merge 5.0->5.1 · 87263436
      Patrick Crews authored
      87263436
    • Georgi Kodinov's avatar
  2. 26 Feb, 2009 11 commits
  3. 25 Feb, 2009 17 commits