1. 10 Sep, 2007 3 commits
    • unknown's avatar
      WL#4030 (Deprecate RENAME DATABASE: replace with ALTER DATABASE <name> · 87b9b509
      unknown authored
        UPGRADE)
      
      Bug 17565 (RENAME DATABASE destroys events)
      Bug#28360 (RENAME DATABASE destroys routines)
      
      Removed the
        RENAME DATABASE db1 TO db2
      statement.
      
      Implemented the
        ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      statement, which has the same function.
      
      
      client/mysqlcheck.c:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/r/create.result:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/r/query_cache.result:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/r/renamedb.result:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/r/sp-code.result:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/r/sp-error.result:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/r/upgrade.result:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/t/create.test:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/t/query_cache.test:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/t/renamedb.test:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/t/sp-error.test:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      mysql-test/t/upgrade.test:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      sql/mysql_priv.h:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      sql/sql_lex.h:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      sql/sql_parse.cc:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      sql/sql_prepare.cc:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      sql/sql_yacc.yy:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      sql/sql_db.cc:
          ALTER DATABASE db UPGRADE DATA DIRECTORY NAME
      87b9b509
    • unknown's avatar
      Merge adventure.(none):/home/thek/Development/cpp/bug27358/my51-bug27358 · 4046f4c0
      unknown authored
      into  adventure.(none):/home/thek/Development/cpp/mysql-5.1-runtime
      
      
      sql/sql_insert.cc:
        Auto merged
      4046f4c0
    • unknown's avatar
      Merge adventure.(none):/home/thek/Development/cpp/bug27358/my50-bug27358 · 51f2f87e
      unknown authored
      into  adventure.(none):/home/thek/Development/cpp/bug27358/my51-bug27358
      
      
      mysql-test/r/delayed.result:
        Auto merged
      mysql-test/t/delayed.test:
        Auto merged
      sql/sql_insert.cc:
        SCCS merged
      51f2f87e
  2. 06 Sep, 2007 4 commits
  3. 05 Sep, 2007 5 commits
    • unknown's avatar
      Merge omega.weblab:/home/malff/TREE/mysql-5.1-base · 1a96ea56
      unknown authored
      into  omega.weblab:/home/malff/TREE/mysql-5.1-rt-merge
      
      1a96ea56
    • unknown's avatar
      Merge malff@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime · 9b64b7ab
      unknown authored
      into  omega.weblab:/home/malff/TREE/mysql-5.1-cleanup
      
      9b64b7ab
    • unknown's avatar
      Test events_logs_tests cleanup · c8f104fd
      unknown authored
      Fixed test failure under heavy load, in case truncate table is slow.
      
      
      mysql-test/r/events_logs_tests.result:
        Fixed test failure under heavy load, in case truncate table is slow.
      mysql-test/t/events_logs_tests.test:
        Fixed test failure under heavy load, in case truncate table is slow.
      c8f104fd
    • unknown's avatar
      The test case for Bug#29936 doesn't work with the embedded version, · c6119599
      unknown authored
      the first query is not running while we are doing wait queries on
      a second connection.
      
      
      mysql-test/r/sp.result:
        Remove test case result for Bug#29936, moving to sp_notembedded.result
      mysql-test/r/sp_notembedded.result:
        Test case result for Bug#29936, moved from sp.result
      mysql-test/t/sp.test:
        Remove test case for Bug#29936, moving to sp_notembedded.test
      mysql-test/t/sp_notembedded.test:
        Test case result for Bug#29936, moved from sp.test
      c6119599
    • unknown's avatar
      Discovered a bug while working with backup. Since it is possible to execute a... · 9bc74eef
      unknown authored
      Discovered a bug while working with backup. Since it is possible to execute a statement in a pre/post statment clause that can return a result, we need to test for that and free it. 
      
      
      client/mysqlslap.c:
        Cleanup resuls if rows are returned.
      9bc74eef
  4. 04 Sep, 2007 6 commits
  5. 03 Sep, 2007 11 commits
  6. 01 Sep, 2007 4 commits
  7. 31 Aug, 2007 7 commits
    • unknown's avatar
      Merge malff@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime · 50a80f1d
      unknown authored
      into  weblab.(none):/home/marcsql/TREE/mysql-5.1-30712
      
      
      sql/log.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      50a80f1d
    • unknown's avatar
      Fixed timing issues in events.test · 74945c8d
      unknown authored
      
      mysql-test/t/events.test:
        
        Wait for the select get_lock() to actually get the lock
        wait for release_lock() to actually release the lock
      74945c8d
    • unknown's avatar
      Eliminate compile warnings. · 75eeb6ad
      unknown authored
      75eeb6ad
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime · 864cdf11
      unknown authored
      into  ibm.opbmk:/home/alik/Documents/MySQL/devel/5.1-rt-bug25843
      
      
      sql/mysql_priv.h:
        Auto merged
      sql/sp.cc:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_db.cc:
        Auto merged
      864cdf11
    • unknown's avatar
      Correct fix for test result. · eaa84de6
      unknown authored
      eaa84de6
    • unknown's avatar
      Fix for BUG#25843: changing default database between PREPARE and EXECUTE · 87a05da8
      unknown authored
      of statement breaks binlog.
      
      There were two problems discovered by this bug:
      
        1. Default (current) database is not fixed at the creation time.
           That leads to wrong output of DATABASE() function.
      
        2. Database attributes (@@collation_database) are not fixed at
           the creation time. That leads to wrong resultset.
      
      Binlog breakage and Query Cache wrong output happened because of
      the first problem.
      
      The fix is to remember the current database at the PREPARE-time and
      set it each time at EXECUTE.
      
      
      mysql-test/include/query_cache_sql_prepare.inc:
        The first part of the test case for BUG#25843.
      mysql-test/r/query_cache_ps_no_prot.result:
        Update result file.
      mysql-test/r/query_cache_ps_ps_prot.result:
        Update result file.
      mysql-test/suite/rpl/r/rpl_ps.result:
        Update result file.
      mysql-test/suite/rpl/t/rpl_ps.test:
        The second part of the test case for BUG#25843.
      sql/mysql_priv.h:
        Added mysql_opt_change_db() prototype.
      sql/sp.cc:
        1. Polishing;
        2. sp_use_new_db() has been removed;
        3. Use mysql_opt_change_db() instead of sp_use_new_db().
      sql/sp.h:
        sp_use_new_db() has been removed.
        This function has nothing to do with a) sp and b) *new* database.
        It was merely "switch the current database if needed".
      sql/sp_head.cc:
        1. Polishing.
        2. Use mysql_opt_change_db() instead of sp_use_new_db().
      sql/sql_class.cc:
        Move THD::{db, db_length} into Statement.
      sql/sql_class.h:
        Move THD::{db, db_length} into Statement.
      sql/sql_db.cc:
        Introduce mysql_opt_change_db() as a replacement (and inspired by)
        sp_use_new_db().
      sql/sql_prepare.cc:
        1. Remember the current database in Prepared_statement::prepare().
        2. Switch/restore the current database in Prepared_statement::execute().
      87a05da8
    • unknown's avatar
      Merge malff@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime · c8e7172a
      unknown authored
      into  weblab.(none):/home/marcsql/TREE/mysql-5.1-cleanup
      
      c8e7172a