1. 31 Aug, 2006 3 commits
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/mysql-5.0 · c79c8a1f
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      configure.in:
        Auto merged
      include/mysql.h:
        Auto merged
      include/mysql_com.h:
        Auto merged
      sql-common/client.c:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      sql/item_strfunc.h:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      c79c8a1f
    • unknown's avatar
      Disable testing of "encrypt" in ctype_ucs.test · 995cca62
      unknown authored
      
      mysql-test/r/ctype_ucs.result:
        Update result file
      mysql-test/t/ctype_ucs.test:
        Disable testing of "encrypt" function in this file. That test has to be guarded by "have_crypt.inc"
      995cca62
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · aa532db0
      unknown authored
      into  bodhi.local:/opt/local/work/mysql-5.0-14897
      
      
      configure.in:
        Auto merged
      include/mysql_com.h:
        Auto merged
      mysql-test/r/grant.result:
        Auto merged
      mysql-test/r/sp.result:
        Auto merged
      mysql-test/r/trigger.result:
        Auto merged
      mysql-test/r/view.result:
        Auto merged
      mysql-test/t/grant.test:
        Auto merged
      mysql-test/t/sp.test:
        Auto merged
      mysql-test/t/trigger.test:
        Auto merged
      mysql-test/t/view.test:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/share/errmsg.txt:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      aa532db0
  2. 30 Aug, 2006 12 commits
  3. 29 Aug, 2006 11 commits
    • unknown's avatar
      Post-merge fixes. · b07cb8f3
      unknown authored
      
      mysql-test/r/view.result:
        A post-merge fix.
      mysql-test/t/grant.test:
        A post-merge fix.
      mysql-test/t/view.test:
        A post-merge fix.
      b07cb8f3
    • unknown's avatar
      Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0 · 1a3071d1
      unknown authored
      into  mysql.com:/Users/kent/mysql/bk/mysql-5.0
      
      1a3071d1
    • unknown's avatar
      Remove the fix for Bug#10668 "CREATE USER does not enforce username · 0222b94c
      unknown authored
      length limit", it's superseded by the fix for Bug#16899 "Possible buffer
      overflow in handling of DEFINER-clause". Update test results.
      
      
      mysql-test/r/grant.result:
        A post-merge fix.
      mysql-test/t/grant.test:
        A new error is returned, use the default database after drop database.
      sql/sql_acl.cc:
        Remove an unneeded check.
      0222b94c
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · a8406889
      unknown authored
      into  bodhi.local:/opt/local/work/mysql-5.0-14897
      
      
      configure.in:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/im_life_cycle.result:
        Auto merged
      mysql-test/t/im_life_cycle.imtest:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      sql/item_strfunc.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/share/errmsg.txt:
        Auto merged
      mysql-test/r/grant.result:
        Manual merge.
      mysql-test/r/view.result:
        Manual merge.
      mysql-test/t/grant.test:
        Manual merge.
      mysql-test/t/view.test:
        Manual merge.
      a8406889
    • unknown's avatar
      A fix for Bug#14897 "ResultSet.getString("table.column") sometimes · a4b93dcc
      unknown authored
      doesn't find the column"
      
      When a user was using 4.1 tables with VARCHAR column and 5.0 server
      and a query that used a temporary table to resolve itself, the
      table metadata for the varchar column sent to client was incorrect:
      MYSQL_FIELD::table member was empty.
      
      The bug was caused by implicit "upgrade" from old VARCHAR to new
      VARCHAR hard-coded in Field::new_field, which did not preserve
      the information about the original table. Thus, the field metadata
      of the "upgraded" field pointed to an auxiliary temporary table
      created for query execution.
      
      The fix is to copy the pointer to the original table to the new field.
      
      
      mysql-test/r/type_varchar.result:
        Update test results (Bug#14897)
      mysql-test/t/type_varchar.test:
        Add a test case for Bug#14897 "ResultSet.getString("table.column") 
        sometimes doesn't find the column"
      sql/field.cc:
        Preserve the original table name when converting fields from 
        old VARCHAR to new VARCHAR.
      mysql-test/std_data/14897.frm:
        New BitKeeper file ``mysql-test/std_data/14897.frm''
      a4b93dcc
    • unknown's avatar
      Merge bk-internal.mysql.com:/data0/bk/mysql-5.0 · 9fa5ad09
      unknown authored
      into  bk-internal.mysql.com:/data0/bk/mysql-5.0-kt
      
      9fa5ad09
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint · a1790956
      unknown authored
      into  polly.local:/home/kaa/src/maint/m50-maint--07OGt
      
      a1790956
    • unknown's avatar
      Merge moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0 · fb2ecd3b
      unknown authored
      into  moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0-bug17591
      
      fb2ecd3b
    • unknown's avatar
      Preliminary patch for the following bugs: · 9f803365
      unknown authored
        - BUG#15934: Instance manager fails to work;
        - BUG#18020: IM connect problem;
        - BUG#18027: IM: Server_ID differs;
        - BUG#18033: IM: Server_ID not reported;
        - BUG#21331: Instance Manager: Connect problems in tests;
      
      The only test suite has been changed
      (server codebase has not been modified).
      
      
      BitKeeper/deleted/.del-im_check_os.inc:
        Rename: mysql-test/include/im_check_os.inc -> BitKeeper/deleted/.del-im_check_os.inc
      mysql-test/include/im_check_env.inc:
        Include only this file from all IM-tests.
      mysql-test/lib/mtr_io.pl:
        Update mtr_get_pid_from_file() to workaround race,
        described in BUG#21884.
      mysql-test/lib/mtr_process.pl:
        Refactor im_start()/im_stop() so that they will be more
        reliable. There are the following user-visible changes:
          - if one of these functions fails, the test suite
            is aborted;
          - mtr_im_stop() now determines whether the component is
            alive or not not only by checking PID, but also by trying
            to connect to the component;
          - after starting IM, the test suite waits for it to start
            accepting client connections and to start all its guarded
            mysqld instances;
          - a lot of debug-logs have been added in order to simplify
            investigation of future failures.
      mysql-test/mysql-test-run.pl:
        1. Get rid of kill_and_cleanup();
        2. Move im_start()/im_stop() to mtr_process.pl;
        3. Change default IM port to 9311 so that it does not interfere
           with default slave port;
      mysql-test/r/im_daemon_life_cycle.result:
        Updated result file.
      mysql-test/r/im_life_cycle.result:
        Updated result file.
      mysql-test/r/im_options_set.result:
        Updated result file.
      mysql-test/r/im_options_unset.result:
        Updated result file.
      mysql-test/r/im_utils.result:
        Updated result file.
      mysql-test/t/im_daemon_life_cycle.imtest:
        Updated IM-test.
      mysql-test/t/im_life_cycle.imtest:
        Updated IM-test.
      mysql-test/t/im_options_set.imtest:
        Updated IM-test.
      mysql-test/t/im_options_unset.imtest:
        Updated IM-test.
      mysql-test/t/im_utils.imtest:
        Updated IM-test.
      9f803365
    • unknown's avatar
      Merge moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0 · 5b77e680
      unknown authored
      into  moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0-bug17591
      
      
      mysql-test/r/view.result:
        Manual merge.
      mysql-test/t/view.test:
        Manual merge.
      5b77e680
    • unknown's avatar
      BUG#17591: Updatable view not possible with trigger or stored function · f92ab279
      unknown authored
      When a view was used inside a trigger or a function, lock type for
      tables used in a view was always set to READ (thus making the view
      non-updatable), even if we were trying to update the view.
      
      The solution is to set lock type properly.
      
      
      mysql-test/r/view.result:
        Add result for bug#17591: Updatable view not possible with trigger
        or stored function.
      mysql-test/t/view.test:
        Add test case for bug#17591: Updatable view not possible with trigger
        or stored function.
      sql/sql_view.cc:
        Move the code that sets requested lock type before the point where
        we exit from mysql_make_view() when we process a placeholder for
        prelocked table.
      f92ab279
  4. 28 Aug, 2006 4 commits
  5. 26 Aug, 2006 4 commits
  6. 25 Aug, 2006 6 commits
    • unknown's avatar
      Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.0-runtime · 0304a763
      unknown authored
      into  example.com:/work/mysql-5.0-runtime
      
      0304a763
    • unknown's avatar
      Merge zippy.cornsilk.net:/home/cmiller/work/mysql/release/mysql-5.0-release_mergable · 5502be4b
      unknown authored
      into  zippy.cornsilk.net:/home/cmiller/work/mysql/release/mysql-5.0-release
      
      5502be4b
    • unknown's avatar
      Merge zippy.cornsilk.net:/home/cmiller/work/mysql/release/mysql-5.0-release_mergable · 2cde3c84
      unknown authored
      into  zippy.cornsilk.net:/home/cmiller/work/mysql/release/mysql-5.0-maint
      
      
      include/mysql.h:
        Auto merged
      include/mysql_com.h:
        Auto merged
      sql-common/client.c:
        Auto merged
      2cde3c84
    • unknown's avatar
      Bug#21543: 5.0.24 breaks ABI compatibility for python bindings: \ · 889812fd
      unknown authored
      	InterfaceError on connect
      
      Removed the bool flag from the st_mysql_options struct, since it adds 
      another word in size to the memory size and shifts member memory locations
      down, both of which break binary-interface compatibility.
      
      Instead, use a flag, 2**30, in the client_options bit-field to represent
      that the client should check the SSL certificate of the server.
      
      
      include/mysql.h:
        Do not change the struct size.
      include/mysql_com.h:
        Add a new bit-flag for client verifying server SSL certificate.
        
        Emphasize that we're not stepping on anyone else's bit/toes.
      sql-common/client.c:
        Set and read the bit-field for client-side SSL-cert checking of the server.
      889812fd
    • unknown's avatar
      Added stacktrace dumps for x86_64 (bug #21250) · 03261497
      unknown authored
      Fixed stacktrace dumps for i386/NPTL
      
      03261497
    • unknown's avatar
      Fix for bug#21795: SP: sp_head::is_not_allowed_in_function() contains · dfb72bb9
      unknown authored
      erroneous check
      
      Problem: Actually there were two problems in the server code. The check
      for SQLCOM_FLUSH in SF/Triggers were not according to the existing
      architecture which uses sp_get_flags_for_command() from sp_head.cc .
      This function was also missing a check for SQLCOM_FLUSH which has a
      problem combined with prelocking. This changeset fixes both of these
      deficiencies as well as the erroneous check in
      sp_head::is_not_allowed_in_function() which was a copy&paste error.
      
      
      mysql-test/r/sp-error.result:
        update result
      mysql-test/r/trigger.result:
        update result
      mysql-test/t/sp-error.test:
        FLUSH can create a problem with prelocking, hence it's disabled.
        There is a better way to check this than a check in the parser.
        Now we use sp_get_flags_for_command() and the error returned is
        different.
      mysql-test/t/trigger.test:
        FLUSH can create a problem with prelocking, hence it's disabled.
        There is a better way to check this than a check in the parser.
        Now we use sp_get_flags_for_command() and the error returned is
        different.
      sql/sp_head.cc:
        FLUSH and RESET are not allowed inside a SF/Trigger.
        Because they don't imply a COMMIT sp_head::HAS_COMMIT_OR_ROLLBACK
        cannot be used. Two new flags were introduced for that reason.
      sql/sp_head.h:
        Don't check m_type as this check is erroneous. This is probably
        a copy and paste error when moving code from somewhere else. Another
        fact which supports this was prefixing the enum value with the name
        of class sp_head.
        
        Adding two new flags HAS_SQLCOM_RESET and HAS_SQLCOM_FLUSH. The values
        are 2048 and 4096 because in the 5.1 branch there are already new flags
        which are with values up-to 1024.
      sql/sql_parse.cc:
        FLUSH can cause a problem with prelocking in SF/Trigger and
        therefore is already disabled. RESET is also disabled because
        is handled by the same code as FLUSH. We won't allow RESET inside
        SF/Trigger at that stage without thorough analysis. The check for
        them is already done in the parser by calling
        is_not_allowed_in_function()
      sql/sql_yacc.yy:
        By listing SQLCOM_FLUSH as command which implies COMMIT
        in sp_get_flags_for_command() the check in sql_yacc.yy is
        obsolete.
      dfb72bb9