1. 04 Jan, 2010 4 commits
    • Jorgen Loland's avatar
      local merge · 9b797d06
      Jorgen Loland authored
      9b797d06
    • Jorgen Loland's avatar
      Bug#48920: COUNT DISTINCT returns 1 for NULL values when in a · 305f2e7f
      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.
      305f2e7f
    • Alexander Nozdrin's avatar
      Auto-merge from mysql-next-mr. · cc900736
      Alexander Nozdrin authored
      cc900736
    • Alexander Nozdrin's avatar
      Auto-merge from mysql-next-mr-serg. · 8e1dc83c
      Alexander Nozdrin authored
      8e1dc83c
  2. 31 Dec, 2009 1 commit
  3. 29 Dec, 2009 1 commit
  4. 28 Dec, 2009 1 commit
    • Alexey Kopytov's avatar
      Manual merge of WL#4738 from mysql-next-mr: · 6c716007
      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
      6c716007
  5. 26 Dec, 2009 2 commits
  6. 25 Dec, 2009 3 commits
  7. 24 Dec, 2009 10 commits
  8. 23 Dec, 2009 12 commits
  9. 22 Dec, 2009 6 commits