1. 28 Sep, 2007 2 commits
    • unknown's avatar
      Patch for BUG#30472: libmysql doesn't reset charset, · 7ec9d9b3
      unknown authored
      insert_id after succ. mysql_change_user() call.
      
      See also WL 4066.
        
      This bug reveals two problems:
        - the problem on the client side which was described originally;
        - the problem in protocol / the server side: connection context
          on client and server should be like after mysql_real_connect()
          and be consistent. The server however just resets character
          set variables to the global defaults.
      
      The fix seems to be as follows:
        - extend the protocol so that the client be able to send
          character set information in COM_CHANGE_USER command;
        - change the server so that it understands client character set
          in the command;
        - change the client:
          - reset character set to the default value (which has been
            read from the configuration);
          - send character set in COM_CHANGE_USER command.
      
      
      client/client_priv.h:
        Declare a function, used in libmysql.c and client.c.
      libmysql/libmysql.c:
        1. Reset character set on the client in mysql_change_user().
        2. Send character set to the server in COM_CHANGE_USER command.
      mysql-test/t/mysql_client_test.test:
        mysql_client_test.log is used by the test suite.
        
        Use mysql_client_test.out.log to collect mysql_client_test
        real output.
      sql/sql_parse.cc:
        Switch character set in COM_CHANGE_USER.
      tests/mysql_client_test.c:
        Test case for BUG#30472.
      7ec9d9b3
    • unknown's avatar
      Prerequisite patch for BUG#30472: libmysql doesn't reset charset, · d502225c
      unknown authored
      insert_id after succ. mysql_change_user() call.
      
      Supply a correct packet length to dispatch command.
      
      
      sql/sp_head.cc:
        Fix packet length.
      sql/sql_parse.cc:
        Fix packet length.
      sql/sql_prepare.cc:
        Fix packet length.
      tests/mysql_client_test.c:
        Test case for COM_CHANGE_USER.
      d502225c
  2. 13 Sep, 2007 2 commits
    • unknown's avatar
      Bug#30747 Create table with identical constraint names behaves incorrectly · fcf123c9
      unknown authored
      MySQL provides what appears to be a non standard extension to the
      FOREIGN KEY syntax which let users name (label/tag) a foreign key
      to more easily identify a specific foreign key if any problems show
      up later during the query parsing or execution. But the foreign key
      name was not being properly set to the right key, possible leaving
      the foreign key with no name.
      
      
      mysql-test/include/mix1.inc:
        Add test case for Bug#30747
      mysql-test/r/innodb_mysql.result:
        Add test case result for Bug#30747
      sql/sql_yacc.yy:
        Set the foreign key name to the constraint name if a specific name was
        not provided. As for the constraint name, only use the foreign name if
        a specific name was not provided.
      fcf123c9
    • unknown's avatar
      Merge malff@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime · fbd6210d
      unknown authored
      into  lambda.weblab:/home/malff/TREE/mysql-5.1-28360-b
      
      
      sql/sql_yacc.yy:
        Auto merged
      fbd6210d
  3. 12 Sep, 2007 1 commit
    • unknown's avatar
      Cleanup of sql_yacc.yy · 9136c67b
      unknown authored
      
      sql/sql_yacc.yy:
        Remove useless actions from the grammar.
        Empty {} actions in the middle of a rule caused an extra reduce,
        which is affecting the parser complexity and performances.
      9136c67b
  4. 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
  5. 06 Sep, 2007 4 commits
  6. 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
  7. 04 Sep, 2007 6 commits
  8. 03 Sep, 2007 11 commits
  9. 01 Sep, 2007 4 commits
  10. 31 Aug, 2007 2 commits