1. 21 Sep, 2005 1 commit
    • unknown's avatar
      Fix for BUG#12882 - min/max inconsistent on empty table. · 8e7217e4
      unknown authored
      The problem was in that the MIN/MAX optimization in opt_sum_query was
      replacing MIN/MAX functions with their constant argument without
      taking into account that a query has no result rows.
      
      
      mysql-test/r/func_group.result:
        Test for BUG#12882.
      mysql-test/t/func_group.test:
        Test for BUG#12882.
      sql/item_sum.cc:
        If it is known that a query has no result rows, do not call add()
        via the call to Item_sum::no_rows_in_result() which calls reset().
        Instead directly call clear() so that the MIN and MAX functions
        produce NULL when there are no result rows.
      sql/opt_sum.cc:
        * Do not apply MIN/MAX optimization when the operand of MIN/MAX is
          a constant if it can't be determined whether the query has any
          result rows. The reason is that if the query has result rows,
          then the result of MIN/MAX is its constant argument, but if the
          query result is empty, then the result of MIN/MAX must be NULL
          irrespective of its argument.
        
        * The patch also simplifies a bit the branch that hadles COUNT().
      8e7217e4
  2. 11 Sep, 2005 1 commit
  3. 10 Sep, 2005 2 commits
  4. 09 Sep, 2005 8 commits
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 8c129f50
      unknown authored
      into moonbone.local:/work/12695-bug-4.1-mysql
      
      
      8c129f50
    • unknown's avatar
      insert_select.result, insert_select.test: · fa13c29b
      unknown authored
        Customer's test case for bug#12695 Item_func_isnull::update_used_tables() did 
        not update const_item_cache.
      
      
      mysql-test/t/insert_select.test:
        Customer's test case for bug#12695 Item_func_isnull::update_used_tables() did 
        not update const_item_cache.
      mysql-test/r/insert_select.result:
        Customer's test case for bug#12695 Item_func_isnull::update_used_tables() did 
        not update const_item_cache.
      fa13c29b
    • unknown's avatar
      Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-4.1 · c1a3b5be
      unknown authored
      into  a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-4.1
      
      
      c1a3b5be
    • unknown's avatar
      Merge mysql.com:/home/alexi/mysql-4.1 · 1e77e263
      unknown authored
      into  mysql.com:/home/alexi/dev/mysql-4.1-12101
      
      
      1e77e263
    • unknown's avatar
      19fa54f0
    • unknown's avatar
      Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-4.1 · 6c7f692d
      unknown authored
      into  c-4a09e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug12594
      
      
      6c7f692d
    • unknown's avatar
      BUG #12101: Additional fix. · 26f8e9c9
      unknown authored
      
      sql/item_cmpfunc.cc:
        Modified Item_func_between::print(), Item_func_in::print().
        Item_func_between/in objects represent now [NOT]BETWEEN/IN expressions.
      26f8e9c9
    • unknown's avatar
      Bug#12817 SHOW STATUS now blob fields · acf8d0f4
      unknown authored
         This fix is cancellation of ChangeSet
         1.2329 05/07/12 08:35:30 reggie@linux.site +8 -0
         Bug 7142  Show Fields from fails using Borland's dbExpress interface
         The reason is we can't fix bug#7142 without
         breaking of existing applications/APIs that worked fine with earlier 4.1
         bug 7142 is fixed in 5.0
      
      
      
      
      mysql-test/r/ps_1general.result:
        Bug #12817 SHOW STATUS now blob fields
      mysql-test/r/ps_2myisam.result:
        Bug #12817 SHOW STATUS now blob fields
      mysql-test/r/ps_3innodb.result:
        Bug #12817 SHOW STATUS now blob fields
      mysql-test/r/ps_4heap.result:
        Bug #12817 SHOW STATUS now blob fields
      mysql-test/r/ps_5merge.result:
        Bug #12817 SHOW STATUS now blob fields
      sql/item.cc:
        Bug #12817 SHOW STATUS now blob fields
      sql/sql_show.cc:
        Bug #12817 SHOW STATUS now blob fields
      tests/mysql_client_test.c:
        Bug #12817 SHOW STATUS now blob fields
      acf8d0f4
  5. 08 Sep, 2005 20 commits
  6. 07 Sep, 2005 8 commits