1. 14 Sep, 2007 10 commits
    • unknown's avatar
      Merge magare.gmz:/home/kgeorge/mysql/work/B31001-5.0-opt · edbc2ca9
      unknown authored
      into  magare.gmz:/home/kgeorge/mysql/work/B31001-5.1-opt
      
      
      mysql-test/include/mix1.inc:
        merge 5.0-opt -> 5.1-opt
      mysql-test/r/innodb_mysql.result:
        merge 5.0-opt -> 5.1-opt
      sql/sql_select.cc:
        merge 5.0-opt -> 5.1-opt
      edbc2ca9
    • unknown's avatar
      Bug #31001: ORDER BY DESC in InnoDB not working · ad496be0
      unknown authored
      The optimizer sets index traversal in reverse order only if there are 
       used key parts that are not compared to a constant.
      However using the primary key as an ORDER BY suffix rendered the check
      incomplete : going in reverse order must still be used even if 
      all the parts of the secondary key are compared to a constant.
      
      Fixed by relaxing the check and set reverse traversal even when all
      the secondary index keyparts are compared to a const.
      Also account for the case when all the primary keys are compared to a
      constant.
      
      
      mysql-test/r/innodb_mysql.result:
        Bug #31001: test case
      mysql-test/t/innodb_mysql.test:
        Bug #31001: test case
      sql/sql_select.cc:
        Bug #31001: 
         - account for the case when all the primary key parts are compared
           to a constant
         - force test_if_skip_sort_order to go backwards over the key even 
           when the number of keyparts used is the same as the number of 
           keyparts equal to a constant. (because of the primary key 
           suffix).
      ad496be0
    • unknown's avatar
      Merge mysql.com:/home/psergey/mysql-5.0-bug30324 · fd3d146f
      unknown authored
      into  mysql.com:/home/psergey/mysql-5.1-bug27927
      
      
      mysql-test/r/type_bit.result:
        Auto merged
      mysql-test/t/type_bit.test:
        Auto merged
      sql/item_sum.cc:
        Auto merged
      fd3d146f
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 2ab4e3d1
      unknown authored
      into  mysql.com:/home/psergey/mysql-5.0-bug30324
      
      
      2ab4e3d1
    • unknown's avatar
      BUG#30324: Grouping queries with COUNT(DISTINCT bit column) return wrong results · 466747d5
      unknown authored
      - The bug was caused by COUNT(DISTINCT ...) code using Unique object in 
        a way that assumed that BIT(N) column occupies a contiguous space in
        temp_table->record[0] buffer. 
      - The fix is to make COUNT(DISTINCT ...) code instruct create_tmp_table to
        create temporary table with column of type BIGINT, not BIT(N).
      
      
      mysql-test/r/type_bit.result:
        BUG#30324: Grouping queries with COUNT(DISTINCT bit column) return wrong results
        - Testcase
      mysql-test/t/type_bit.test:
        BUG#30324: Grouping queries with COUNT(DISTINCT bit column) return wrong results
        - Testcase
      sql/item_sum.cc:
        BUG#30324: Grouping queries with COUNT(DISTINCT bit column) return wrong results
        - Make COUNT(DISTINCT ...) code instruct create_tmp_table to create 
          temporary table with BIGINT, not BIT(N) column.
      466747d5
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 98d79d93
      unknown authored
      into  mysql.com:/home/psergey/mysql-5.1-bug27927
      
      
      mysql-test/r/partition_pruning.result:
        Auto merged
      98d79d93
    • unknown's avatar
      BUG#27927:Partition pruning not optimal with TO_DAYS and YEAR functions · 4aaabb06
      unknown authored
      - Introduced val_int_endpoint() function which converts between func 
        argument intervals and func value intervals for monotonic functions.
      - Made partition interval analyzer use part_expr->val_int_endpoint()
        to check if the edge values should be included.
      
      
      mysql-test/r/partition_pruning.result:
        BUG#27927: Partition pruning not optimal with TO_DAYS and YEAR functions
        - Testcase
      mysql-test/t/partition_pruning.test:
        BUG#27927: Partition pruning not optimal with TO_DAYS and YEAR functions
        - Testcase
      sql/item.cc:
        BUG#27927: Partition pruning not optimal with TO_DAYS and YEAR functions
        - Added Item_field::val_int_endpoint() implementation
      sql/item.h:
        BUG#27927: Partition pruning not optimal with TO_DAYS and YEAR functions
        - Added Item::val_int_endpoint() which converts intervals from argument
          space to function value space for unary monotonic functions.
      sql/item_timefunc.cc:
        BUG#27927: Partition pruning not optimal with TO_DAYS and YEAR functions
        - Added val_int_endpoint() for TO_DAYS and YEAR functions.
      sql/item_timefunc.h:
        BUG#27927: Partition pruning not optimal with TO_DAYS and YEAR functions
        - Added val_int_endpoint() for TO_DAYS and YEAR functions.
      sql/partition_info.h:
        BUG#27927: Partition pruning not optimal with TO_DAYS and YEAR functions
        - Removed partition_info::range_analysis_include_bounds as it is no longer 
          needed.
      sql/sql_partition.cc:
        BUG#27927: Partition pruning not optimal with TO_DAYS and YEAR functions
        - Make partition interval analyzer use part_expr->val_int_endpoint() to 
          check if the edge values should be included.
      4aaabb06
    • unknown's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.0-opt · 9a20ca13
      unknown authored
      into  gleb.loc:/home/uchum/work/bk/5.1-opt
      
      
      9a20ca13
    • unknown's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.1 · a89c768b
      unknown authored
      into  gleb.loc:/home/uchum/work/bk/5.1-opt
      
      
      a89c768b
    • unknown's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.0 · a87365e5
      unknown authored
      into  gleb.loc:/home/uchum/work/bk/5.0-opt
      
      
      a87365e5
  2. 13 Sep, 2007 6 commits
  3. 12 Sep, 2007 5 commits
  4. 11 Sep, 2007 2 commits
  5. 10 Sep, 2007 4 commits
  6. 07 Sep, 2007 1 commit
    • unknown's avatar
      Bug #28430 Failure in replication of innodb partitioned tables on row/mixed format. · afd34c69
      unknown authored
      In the ha_partition::position() we don't calculate the number
      of the partition of the record, but use m_last_part value instead,
      relying on that it's previously set by some other call like ::write_row().
      Delete_rows_log_event::do_exec_row() calls find_and_fetch_row(),
      where we used position() + rnd_pos() call for the InnoDB-based PARTITION-ed
      table as there HA_PRIMARY_KEY_REQUIRED_FOR_POSITION enabled.
      
      fixed by introducing new handler::rnd_pos_by_record() method to be
      used for random record-based positioning
      
      
      sql/ha_partition.cc:
        Bug #28430 Failure in replication of innodb partitioned tables on row/mixed format.
        
        ha_partition::rnd_pos_by_record() implemented
      sql/ha_partition.h:
        Bug #28430 Failure in replication of innodb partitioned tables on row/mixed format.
        
        ha_partition::rnd_pos_by_record() declared
      sql/handler.h:
        Bug #28430 Failure in replication of innodb partitioned tables on row/mixed format.
        
        handler::rnd_pos_by_record() introduced
      sql/log_event.cc:
        Bug #28430 Failure in replication of innodb partitioned tables on row/mixed format.
        
        handler::rnd_pos_by_record used instead of position() + rnd_pos() call
      afd34c69
  7. 06 Sep, 2007 10 commits
    • unknown's avatar
      0e1cdf8d
    • unknown's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.0-opt · 9d016335
      unknown authored
      into  gleb.loc:/home/uchum/work/bk/5.1-opt
      
      
      mysql-test/r/sp.result:
        Auto merged
      mysql-test/t/sp.test:
        Auto merged
      9d016335
    • unknown's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.1 · e763095f
      unknown authored
      into  gleb.loc:/home/uchum/work/bk/5.1-opt
      
      
      mysql-test/r/sp.result:
        Auto merged
      mysql-test/t/sp.test:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      e763095f
    • unknown's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.0 · 76e37a32
      unknown authored
      into  gleb.loc:/home/uchum/work/bk/5.0-opt
      
      
      mysql-test/r/sp.result:
        Auto merged
      mysql-test/t/sp.test:
        Auto merged
      76e37a32
    • unknown's avatar
      sql_parse.cc: · d7262773
      unknown authored
        Post-merge fix.
      
      
      sql/sql_parse.cc:
        Post-merge fix.
      d7262773
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime · 9179dc33
      unknown authored
      into  moksha.local:/Users/davi/mysql/push/mysql-5.1-runtime
      
      
      9179dc33
    • unknown's avatar
      The test case for bug 28587 doesn't work with the embedded version, · 16c32805
      unknown authored
      the first query is not running while we are doing wait queries on
      a second connection.
      
      
      mysql-test/r/insert_notembedded.result:
        Test case result for bug 28587 moved from insert_update.result
      mysql-test/r/insert_update.result:
        Remove test case result for bug 28587, moving to insert_notembedded.result
      mysql-test/t/insert_notembedded.test:
        Test case result for bug 28587, moved from insert_update.test
      mysql-test/t/insert_update.test:
        Remove test case for bug 28587, moving to insert_notembedded.test
      16c32805
    • unknown's avatar
      sp.result: · d9a7fd12
      unknown authored
        Post-merge fix.
      
      
      mysql-test/r/sp.result:
        Post-merge fix.
      d9a7fd12
    • unknown's avatar
      Merge gleb.loc:/home/uchum/work/bk/5.0-opt · 414d3450
      unknown authored
      into  gleb.loc:/home/uchum/work/bk/5.1-opt
      
      
      BitKeeper/etc/ignore:
        auto-union
      mysql-test/r/distinct.result:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      mysql-test/include/mix1.inc:
        Merge with 5.0-opt.
      mysql-test/r/group_by.result:
        Merge with 5.0-opt.
      mysql-test/r/innodb_mysql.result:
        Merge with 5.0-opt.
      mysql-test/r/sp.result:
        Merge with 5.0-opt.
      mysql-test/t/group_by.test:
        Merge with 5.0-opt.
      mysql-test/t/sp.test:
        Merge with 5.0-opt.
      sql/sql_parse.cc:
        Merge with 5.0-opt.
      sql/sql_select.cc:
        Merge with 5.0-opt.
      sql/sql_view.cc:
        Merge with 5.0-opt.
      414d3450
    • unknown's avatar
      Make events.test more robust against timing issues. · ed34d911
      unknown authored
      
      mysql-test/t/events.test:
        Wait until event scheduler thread reaches exactly the same state
        which later appears in the results of select from processlist.
      ed34d911
  8. 05 Sep, 2007 2 commits