1. 23 Apr, 2008 1 commit
    • unknown's avatar
      Merge host.loc:/home/uchum/work/5.0-bugteam · 68dc7a13
      unknown authored
      into  host.loc:/home/uchum/work/5.1-bugteam
      
      
      mysql-test/r/ctype_gbk.result:
        Auto merged
      mysql-test/r/subselect3.result:
        Auto merged
      mysql-test/t/subselect3.test:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      strings/ctype-big5.c:
        Merge with 5.0-bugteam (bug#35993).
      strings/ctype-gbk.c:
        Merge with 5.0-bugteam (bug#35993).
      68dc7a13
  2. 22 Apr, 2008 3 commits
    • unknown's avatar
      Merge host.loc:/home/uchum/work/5.0-bugteam-35993 · dee04cb5
      unknown authored
      into  host.loc:/home/uchum/work/5.0-bugteam
      
      dee04cb5
    • unknown's avatar
      Fixed bug#36005: server crashes inside NOT IN clause subquery with · 5bb4282e
      unknown authored
                       impossible WHERE/HAVING clause
                       (subselect_single_select_engine::exec).
      
      Allocation and initialization of joined table list t1, t2... of
      subqueries like:
      
          NOT IN (SELECT ... FROM t1,t2,... WHERE 0)
      
      is optimized out, however server tries to traverse this list.
      
      
      mysql-test/r/subselect3.result:
        Added test case for bug#36005.
      mysql-test/t/subselect3.test:
        Added test case for bug#36005.
      sql/sql_select.cc:
        Fixed bug#36005.
        
        1. JOIN::prepare initializes JOIN::table counter (actually a size
           of the JOIN::join_tab array) and sets it to a number of joined tables.
        
        2. The make_join_statistics function (when called from JOIN::optimize)
           allocates and fills the JOIN::join_tab array.
           However, when optimizing subselect has impossible (definite false)
           WHERE or HAVING clause, optimizer skips call to make_join_statistics
           and leaves JOIN::join_tab == NULL.
        
        3. subselect_single_select_engine::exec does traversal of the JOIN::join_tab
           array and the server dies because array is not allocated but array
           counter is greater than 0.
        
        The JOIN::optimize method has been modified to reset the JOIN::table
        counter to 0 in cause of impossible WHERE/HAVING clause.
      5bb4282e
    • unknown's avatar
      Fixed bug #35993: memory corruption and crash with multibyte conversion. · 39e9cf67
      unknown authored
      Grouping or ordering of long values in not indexed BLOB/TEXT columns
      with GBK or BIG5 charsets crashes the server.
      
      MySQL server uses sorting (the filesort procedure) in the temporary
      table to evaluate the GROUP BY clause in case of lack of suitable index.
      That procedure takes into account only first @max_sort_length bytes
      (system variable, usually 1024) of TEXT/BLOB sorting key string.
      The my_strnxfrm_gbk and my_strnxfrm_big5 fill temporary keys
      with data of whole blob length instead of @max_sort_length bytes
      length. That buffer overrun has been fixed.
      
      
      mysql-test/r/ctype_gbk.result:
        Added test case for bug #35993.
      mysql-test/t/ctype_gbk.test:
        Added test case for bug #35993.
      strings/ctype-big5.c:
        Fixed bug #35993: memory corruption and crash with multibyte conversion.
        
        Buffer overrun has been fixed in the my_strnxfrm_big5 function.
      strings/ctype-gbk.c:
        Fixed bug #35993: memory corruption and crash with multibyte conversion.
        
        Buffer overrun has been fixed in the my_strnxfrm_gbk function.
      39e9cf67
  3. 21 Apr, 2008 2 commits
    • unknown's avatar
      Merge mysql.com:/home/psergey/mysql-5.0-bugteam · 14177de7
      unknown authored
      into  mysql.com:/home/psergey/mysql-5.1-bugteam
        BUG#36139: manual merge
      
      
      sql/item.cc:
        Auto merged
      mysql-test/r/subselect.result:
        BUG#36139: Manual merge
      mysql-test/t/subselect.test:
        BUG#36139: Manual merge
      14177de7
    • unknown's avatar
      BUG#36139 "float, zerofill, crash with subquery" · 84182140
      unknown authored
      - Make convert_zerofill_number_to_string() take into account that the 
        constant it is converting may evaluate to NULL.
      
      
      mysql-test/r/subselect.result:
        BUG#36139 "float, zerofill, crash with subquery"
        - Testcase
      mysql-test/t/subselect.test:
        BUG#36139 "float, zerofill, crash with subquery"
        - Testcase
      84182140
  4. 01 Apr, 2008 6 commits
  5. 31 Mar, 2008 12 commits
  6. 30 Mar, 2008 3 commits
  7. 29 Mar, 2008 10 commits
    • unknown's avatar
      Bug #35675 reset master finds assert if a binlog file can not be deleted · 8d74abb0
      unknown authored
      If a binlog file is manually replaced with a namesake directory the internal purging did
      not handle the error of deleting the file so that eventually
      a post-execution guards fires an assert.
      
      Fixed with reusing a snippet of code for bug@18199 to tolerate lack of the file but no other error 
      at an attempt to delete it.
      The same applied to the index file deletion.
      
      The cset carries pieces of manual merging.
      
      
      mysql-test/r/binlog_index.result:
        new results
      mysql-test/r/ctype_big5.result:
        results changed
      mysql-test/suite/binlog/r/binlog_auto_increment_bug33029.result:
        new results
      mysql-test/suite/binlog/r/binlog_stm_blackhole.result:
        new results
      mysql-test/suite/binlog/t/binlog_auto_increment_bug33029.test:
        cleanup. still todo: to let the test run multiple times w/o restarting the server (just ./mtr test)
      mysql-test/suite/rpl/r/rpl_stm_auto_increment_bug33029.result:
        results changed
      mysql-test/suite/rpl/t/rpl_stm_auto_increment_bug33029.test:
        guarding the test with statement format condition as the logics of the test requires
      sql/log.cc:
        two changes. One for the bug, other manual merge.
        The bug change needs MYF(0) to pass to my_delete because not all error out of the function
        are critical. The finer check is done on the caller of my_delete similarly how it was implemented
        for bug@18199 fixes. Non-existance of a file is not a critical error.
      sql/sql_class.cc:
        manual merge, removing extra automatically brought hunk.
      8d74abb0
    • unknown's avatar
      Merge macbook.gmz:/Users/kgeorge/mysql/work/pb-5.0-bugteam · bdc7963c
      unknown authored
      into  macbook.gmz:/Users/kgeorge/mysql/work/pb-5.1-bugteam
      
      
      mysys/mf_keycache.c:
        null-merge
      sql/item_func.cc:
        null-merge
      sql/lock.cc:
        null-merge
      sql/sql_analyse.cc:
        null-merge
      storage/csv/ha_tina.cc:
        null-merge
      storage/myisam/mi_check.c:
        null-merge
      storage/myisam/mi_keycache.c:
        null-merge
      bdc7963c
    • unknown's avatar
      fixed warnings from the fix of 26243 · c6b4a742
      unknown authored
      c6b4a742
    • unknown's avatar
      Merge macbook.gmz:/Users/kgeorge/mysql/work/pb-5.0-bugteam · 277d2c95
      unknown authored
      into  macbook.gmz:/Users/kgeorge/mysql/work/pb-5.1-bugteam
      
      
      BitKeeper/deleted/.del-ha_berkeley.cc:
        null-merge
      extra/charset2html.c:
        Auto merged
      sql/mysqld.cc:
        null-merge
      sql/sql_union.cc:
        null-merge
      277d2c95
    • unknown's avatar
      43ca62ce
    • unknown's avatar
      Merge mysql1000.(none):/home/andrei/MySQL/MERGE/5.0-main2rpl · 9e57c988
      unknown authored
      into  mysql1000.(none):/home/andrei/MySQL/MERGE/5.1-main2rpl
      
      
      BitKeeper/deleted/.del-binlog_killed_simulate.result:
        Auto merged
      BitKeeper/deleted/.del-show_binlog_events.inc:
        Auto merged
      mysql-test/suite/rpl/r/rpl_user.result:
        Auto merged
      storage/blackhole/ha_blackhole.cc:
        Auto merged
      BitKeeper/deleted/.del-show_binary_logs.inc:
        Delete: mysql-test/include/show_binary_logs.inc
      mysql-test/suite/binlog/r/binlog_stm_mix_innodb_myisam.result:
        manual merge ul.
      mysql-test/extra/binlog_tests/blackhole.test:
        manual merge
      mysql-test/suite/binlog/r/binlog_stm_blackhole.result:
        manual merge
      sql/log.cc:
        manual merge
      sql/share/errmsg.txt:
        manual merge
      sql/sql_class.cc:
        manual merge
      9e57c988
    • unknown's avatar
      Merge mysql1000.(none):/home/andrei/MySQL/BARE/mysql-5.1 · 1f5c4861
      unknown authored
      into  mysql1000.(none):/home/andrei/MySQL/MERGE/5.1-main2rpl
      
      
      client/mysqltest.c:
        Auto merged
      mysql-test/t/disabled.def:
        Auto merged
      sql/slave.cc:
        Auto merged
      sql/slave.h:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      1f5c4861
    • unknown's avatar
      Fixing rpl suite disabled.def: rpl_stm_extraColmaster_ndb does not exist in the suite. · ab5d32b2
      unknown authored
      
      mysql-test/suite/rpl/t/disabled.def:
        removing the line because there is no such test in the suite anymore.
      ab5d32b2
    • unknown's avatar
      Merge macbook.gmz:/Users/kgeorge/mysql/work/pb-5.0-bugteam · b367adbd
      unknown authored
      into  macbook.gmz:/Users/kgeorge/mysql/work/pb-5.1-bugteam
      
      
      configure.in:
        null merge
      libmysql/libmysql.c:
        null merge
      sql/ha_ndbcluster.cc:
        null merge
      sql/ha_ndbcluster_cond.cc:
        null merge
      sql-common/client.c:
        null merge
      storage/federated/ha_federated.cc:
        null merge
      storage/heap/hp_test2.c:
        SCCS merged
      storage/innobase/handler/ha_innodb.cc:
        null merge
      storage/myisam/mi_check.c:
        null merger
      storage/myisam/mi_delete.c:
        null merge
      storage/myisam/mi_dynrec.c:
        null merge
      storage/myisam/mi_key.c:
        null merge
      storage/myisam/mi_open.c:
        null merge
      storage/myisam/mi_packrec.c:
        null merge
      storage/myisam/mi_page.c:
        null merge
      storage/myisam/mi_search.c:
        null merge
      storage/myisam/mi_statrec.c:
        null merge
      storage/myisam/mi_test1.c:
        SCCS merged
      storage/myisam/mi_test2.c:
        null merge
      storage/myisam/mi_test3.c:
        SCCS merged
      storage/myisam/mi_write.c:
        null merge
      storage/myisammrg/myrg_rkey.c:
        null merge
      storage/ndb/src/ndbapi/DictCache.cpp:
        null merge
      storage/ndb/src/ndbapi/NdbBlob.cpp:
        null merge
      storage/ndb/src/ndbapi/NdbOperationDefine.cpp:
        null merge
      storage/ndb/src/ndbapi/NdbOperationInt.cpp:
        null merge
      storage/ndb/src/ndbapi/NdbOperationSearch.cpp:
        null merge
      b367adbd
    • unknown's avatar
      5ba6efcb
  8. 28 Mar, 2008 3 commits