1. 06 Jan, 2010 4 commits
  2. 04 Jan, 2010 4 commits
    • Jorgen Loland's avatar
      local merge · 7c5e2764
      Jorgen Loland authored
      7c5e2764
    • Jorgen Loland's avatar
      Bug#48920: COUNT DISTINCT returns 1 for NULL values when in a · 5beb063f
      Jorgen Loland authored
                 subquery in the select list
            
      When a dependent subquery with count(distinct <col>) was 
      evaluated multiple times, the Distinct_Aggregator was reused. 
      However, the Aggregator was not reset, so when the subquery was
      evaluated for the next record in the outer select, old dependent
      info was used.
            
      The fix is to clear() the existing aggregator in 
      Item_sum::set_aggregator(). This ensures that the aggregator is
      reevaluated with the new dependent information.
      
      mysql-test/r/subselect3.result:
        Added test case for BUG#48920
      mysql-test/t/subselect3.test:
        Added test case for BUG#48920
      sql/item_sum.cc:
        If an aggregator exists when Item_sum::set_aggregator() is
        called (i.e., set_aggregator is called in a dependent
        subquery), the aggregator is reset so that the aggregator is
        reevaluated with the dependent information from the outer
        record being evaluated.
      5beb063f
    • Alexander Nozdrin's avatar
      Auto-merge from mysql-next-mr. · f72b16e1
      Alexander Nozdrin authored
      f72b16e1
    • Alexander Nozdrin's avatar
      Auto-merge from mysql-next-mr-serg. · c18ed1d7
      Alexander Nozdrin authored
      c18ed1d7
  3. 31 Dec, 2009 1 commit
  4. 29 Dec, 2009 1 commit
  5. 28 Dec, 2009 1 commit
    • Alexey Kopytov's avatar
      Manual merge of WL#4738 from mysql-next-mr: · 9016688f
      Alexey Kopytov authored
       
      - backported code that handles %f/%g arguments in 
      my_vsnprintf.c from 6.0 
      - backported %f/%g tests in unittest/mysys/my_vsnprintf-t.c 
      from 6.0 
      - replaced snprintf("%g") in sql/set_var.cc with my_gcvt() 
      - removed unnecessary "--replace-result"s for Windows in 
      mysql-test/suite/sys_vars/t/long_query_time_basic.test 
      - some test results adjustments
      9016688f
  6. 26 Dec, 2009 2 commits
  7. 25 Dec, 2009 3 commits
  8. 24 Dec, 2009 10 commits
  9. 23 Dec, 2009 12 commits
  10. 22 Dec, 2009 2 commits