1. 07 Oct, 2004 17 commits
    • unknown's avatar
      ha_innodb.cc: · ff879b93
      unknown authored
        Merge manually the InnoDB mysqldump -l crash patch (crash with LOCK TABLES ... LOCAL) from 4.0 to 4.1; some code cleanup
      
      
      sql/ha_innodb.cc:
        Merge manually the mysqldump -l crash pacth from 4.0 to 4.1; some code cleanup
      ff879b93
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 57fedc40
      unknown authored
      into mysql.com:/home/my/mysql-4.1
      
      
      57fedc40
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 9757a3a2
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      
      9757a3a2
    • unknown's avatar
      more order by fixes · 9acec233
      unknown authored
      9acec233
    • unknown's avatar
      Correct an 'unresolved identifier' problem caused by an "inline" · 3743df6e
      unknown authored
      function being used before it was defined - "forward" declaration
      was insufficient.
      
      
      innobase/lock/lock0lock.c:
        Compile problem on 'build', solved by moving the definition of
        'lock_rec_get_nth_bit' to the place of the ("forward") declaration.
        It is "inline", and now the body really appears before the first use.
      3743df6e
    • unknown's avatar
      Merge mysql.com:/home/my/mysql-4.0 into mysql.com:/home/my/mysql-4.1 · 9232c91d
      unknown authored
      
      client/mysqlimport.c:
        Auto merged
      myisam/mi_locking.c:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_handler.cc:
        Auto merged
      9232c91d
    • unknown's avatar
      Manual merge of tree containing fix for bug #5915 "ALTER TABLE behaves · 0129f32b
      unknown authored
      differently when converting column to auto_increment in 4.1" with
      current tree.
      
      
      mysql-test/t/type_timestamp.test:
        Auto merged
      mysql-test/r/type_timestamp.result:
        Manual merge.
      sql/sql_table.cc:
        Manual merge.
      0129f32b
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 5b3444d2
      unknown authored
      into mysql.com:/home/my/mysql-4.1
      
      
      5b3444d2
    • unknown's avatar
      more order by for ndb · 1d7ae133
      unknown authored
      1d7ae133
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 92c90128
      unknown authored
      into mysql.com:/home/my/mysql-4.1
      
      
      sql/mysqld.cc:
        Auto merged
      92c90128
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · d8a0fbaf
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      
      d8a0fbaf
    • unknown's avatar
    • unknown's avatar
      Fix for bug #5915 "ALTER TABLE behaves differently when converting column · 34789efd
      unknown authored
      to auto_increment in 4.1".
      Now we are enforcing NO_AUTO_VALUE_ON_ZERO mode during ALTER TABLE only
      if we are converting one auto_increment column to another auto_increment
      column (this also includes most common case when we don't do anything
      with such column).
      
      Also now when we convert some column to TIMESTAMP NOT NULL column with
      ALTER TABLE we convert NULL values to current timestamp, (as we do this
      in INSERT). One can still get old behavior by setting system TIMESTAMP
      variable to 0.
      
      
      mysql-test/r/auto_increment.result:
        Added tests for ALTER TABLE converting columns containing NULL and 0
        values to AUTO_INCREMENT columns.
      mysql-test/r/type_timestamp.result:
        Removed test for creation of TIMESTAMP(19) columns (it is 4.0 specific).
        Added test for ALTER TABLE converting columns containing NULL values
        to TIMESTAMP columns.
      mysql-test/t/auto_increment.test:
        Added tests for ALTER TABLE converting columns containing NULL and 0
        values to AUTO_INCREMENT columns.
      mysql-test/t/type_timestamp.test:
        Removed test for creation of TIMESTAMP(19) columns (it is 4.0 specific).
        Added test for ALTER TABLE converting columns containing NULL values
        to TIMESTAMP columns.
      sql/field_conv.cc:
        Fix bug #5915 "ALTER TABLE behaves differently when converting column
        to auto_increment in 4.1". Also now when we are converting some column
        to TIMESTAMP column, we are converting NULL values to CURRENT_TIMESTAMP
        (as it was initially planned).
        
        do_copy_timestamp(): Fixed comment.
        do_copy_next_number(): We should also set auto_increment_field_not_null
          to FALSE if we have NULL in source field.
        Copy_field::set(): Moved setting of copy functions for TIMESTAMP and
          AUTO_INCREMENT fields to proper place (this was dead code before).
      sql/sql_table.cc:
        Fix for bug #5915 "ALTER TABLE behaves differently when converting column
        to auto_increment in 4.1".
        
        Instead of always forcing NO_AUTO_VALUE_ON_ZERO in ALTER TABLE it is
        better to do this only if we are converting one auto_increment column
        to another auto_increment column (this also includes most common case
        when we don't do anything with such column).
      34789efd
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-4.1 · 4d52afcb
      unknown authored
      into brian-akers-computer.local:/Users/brian/mysql/mysql-4.1
      
      
      4d52afcb
    • unknown's avatar
      adder order by · 1f436734
      unknown authored
      1f436734
    • unknown's avatar
      After merge fixes · 96e7be58
      unknown authored
      Some bigger code changes was necessary becasue of the multi-table-update and the new HANDLER code
      
      
      include/hash.h:
        Added back function that's was used in 4.0
      mysql-test/r/delete.result:
        Update results after merge
      mysql-test/r/flush_table.result:
        Update results after merge
      mysql-test/r/func_str.result:
        Update results after merge
      mysql-test/r/handler.result:
        Update results after merge
        Change is big becasue in MySQL 4.1 you are not allowed to qualify the handler alias with a databasename
      mysql-test/r/multi_update.result:
        More startup cleanups
      mysql-test/r/rename.result:
        More startup-cleanups
      mysql-test/r/select.result:
        More startup cleanups
      mysql-test/r/show_check.result:
        More startup-cleanups
      mysql-test/t/ctype_latin1_de.test:
        Cleanup
      mysql-test/t/derived.test:
        Portability fix
      mysql-test/t/handler.test:
        Update results after merge
        Change is big becasue in MySQL 4.1 you are not allowed to qualify the handler alias with a databasename
      mysql-test/t/multi_update.test:
        More startup cleanups
      mysql-test/t/range.test:
        More comments
      mysql-test/t/rename.test:
        More startup cleanups
      mysql-test/t/select.test:
        More startup cleanups
      mysql-test/t/show_check.test:
        More startup cleanups
      mysql-test/t/type_timestamp.test:
        Add back test deleted during merge
      sql/item_cmpfunc.cc:
        After merge fixes
      sql/item_func.cc:
        Remove compiler warning
      sql/mysql_priv.h:
        After merge fixes
      sql/mysqld.cc:
        After merge fixes
      sql/sql_acl.cc:
        More debugging
      sql/sql_base.cc:
        After merge fixes
        (This fix was needed bacause of multi-table-update reopens tables)
      sql/sql_handler.cc:
        After merge fixes
      sql/sql_lex.h:
        After merge fixes
      sql/sql_select.cc:
        After merge fixes
      sql/sql_show.cc:
        After merge fixes
      sql/sql_table.cc:
        After merge fixes
        Simple cleanup of mysql_discard_or_import_tablespace
      sql/sql_update.cc:
        After merge fixes
        Rework mysql_multi_update to take into account derived tables.
      sql/sql_yacc.yy:
        After merge fixes
      96e7be58
    • unknown's avatar
      Clean up from Bar and Antony code review. Found an issue with the header file... · 62637c9d
      unknown authored
      Clean up from Bar and Antony code review. Found an issue with the header file were it could end up corrupted.
      
      
      sql/examples/ha_archive.cc:
        Cleanup from Bar's and Antony's code review. Meta file should not be system independent (so you can copy around the files as you like).
      sql/examples/ha_archive.h:
        No longer bother with storing the working version of the data files. Its unimportant while there is only one format.
      62637c9d
  2. 06 Oct, 2004 7 commits
    • unknown's avatar
      Merge build.mysql.com:/home/bk/mysql-4.0 · 1601646a
      unknown authored
      into build.mysql.com:/users/rburnett/mysql-4.0
      
      
      1601646a
    • unknown's avatar
      Enabled the writing of a pid file on Windows. · 10cd526d
      unknown authored
      mysqld.cc:
        Added call to create_pid_file to start_signal_handler on windows.  Also removed the #ifndef WINDOWS from two calls that deletes the pid file
      
      
      sql/mysqld.cc:
        Added call to create_pid_file to start_signal_handler on windows.  Also removed the #ifndef WINDOWS from two calls that deletes the pid file
      10cd526d
    • unknown's avatar
      Merge with 4.0 for 4.1 release · bbab9ec6
      unknown authored
      Noteworthy:
      - New HANDLER code
      - New multi-update-grant-check code
      - Table lock code in ha_innodb.cc was not applied
      
      
      BitKeeper/etc/logging_ok:
        auto-union
      BitKeeper/deleted/.del-ctype-latin1_de.c~c5d8f9208bceb98e:
        Auto merged
      Build-tools/mysql-copyright-2:
        Auto merged
      acinclude.m4:
        Auto merged
      client/mysqladmin.c:
        Auto merged
      client/mysqldump.c:
        Auto merged
      include/config-win.h:
        Auto merged
      include/my_global.h:
        Auto merged
      include/myisam.h:
        Auto merged
      innobase/btr/btr0btr.c:
        Auto merged
      innobase/buf/buf0buf.c:
        Auto merged
      ltmain.sh:
        Auto merged
      innobase/dict/dict0dict.c:
        Auto merged
      innobase/fsp/fsp0fsp.c:
        Auto merged
      innobase/include/dict0dict.h:
        Auto merged
      innobase/include/row0mysql.h:
        Auto merged
      innobase/log/log0log.c:
        Auto merged
      innobase/log/log0recv.c:
        Auto merged
      innobase/pars/pars0opt.c:
        Auto merged
      innobase/row/row0row.c:
        Auto merged
      innobase/sync/sync0arr.c:
        Auto merged
      innobase/ut/ut0dbg.c:
        Auto merged
      myisam/mi_check.c:
        Auto merged
      myisam/mi_close.c:
        Auto merged
      myisam/mi_create.c:
        Auto merged
      myisam/mi_locking.c:
        Auto merged
      myisam/myisampack.c:
        Auto merged
      mysql-test/r/delete.result:
        Auto merged
      mysql-test/r/func_if.result:
        Auto merged
      Build-tools/mysql-copyright:
        Merge with 4.0 (too most of the code from 4.0)
      Makefile.am:
        merge
      client/mysql.cc:
        Used 4.1 code
      configure.in:
        merge
      innobase/os/os0file.c:
        merge
      innobase/row/row0mysql.c:
        merge
      mysql-test/r/ctype_latin1_de.result:
        merge
      mysql-test/r/flush_table.result:
        merge
      mysql-test/r/func_str.result:
        merge
      mysql-test/r/handler.result:
        merge
      mysql-test/r/multi_update.result:
        merge
      mysql-test/r/type_timestamp.result:
        Removed testing of 'new' mode, as this is only relevant for 4.0
      mysql-test/r/update.result:
        merge
      mysql-test/t/delete.test:
        merge
      mysql-test/t/flush_table.test:
        merge
      mysql-test/t/func_str.test:
        merge
      mysql-test/t/handler.test:
        merge
      mysql-test/t/multi_update.test:
        merge
      mysql-test/t/type_timestamp.test:
        Removed testing of 'new' mode, as this is only relevant for 4.0
      mysql-test/t/update.test:
        merge
      mysys/errors.c:
        merge
      mysys/my_fstream.c:
        merge
      mysys/my_pread.c:
        merge
      mysys/my_write.c:
        merge
      mysys/mysys_priv.h:
        merge
      scripts/mysqlhotcopy.sh:
        merge
      sql/field.cc:
        Keep code from 4.1
      sql/field.h:
        Keep code from 4.1
      sql/ha_innodb.cc:
        Don't merge lock code from 4.0; Heikki will look at this
      sql/ha_myisam.cc:
        merge
      sql/handler.cc:
        merge
      sql/item_cmpfunc.cc:
        merge
      sql/item_cmpfunc.h:
        merge
      sql/item_strfunc.cc:
        merge
      sql/mysql_priv.h:
        merge
      sql/mysqld.cc:
        merge
      sql/protocol.cc:
        merge
      sql/records.cc:
        merge
      sql/repl_failsafe.cc:
        merge
      mysql-test/r/lock_multi.result:
        merge
      mysql-test/t/ctype_latin1_de.test:
        merge
      mysql-test/t/func_if.test:
        merge
      mysql-test/t/lock_multi.test:
        merge
      sql/repl_failsafe.h:
        merge
        Remove unnessessary header protection
      sql/slave.h:
        merge
      sql/sql_acl.cc:
        merge
      sql/sql_base.cc:
        merge
      sql/sql_cache.cc:
        auto merge
      sql/sql_class.cc:
        merge
      sql/sql_class.h:
        merge
      sql/sql_delete.cc:
        merge
      sql/sql_handler.cc:
        Get new HANDLER code into 4.1
      sql/sql_parse.cc:
        Keep old file
      sql/sql_repl.cc:
        merge
      sql/sql_repl.h:
        merge
      sql/sql_show.cc:
        merge
      sql/sql_table.cc:
        merge
      sql/sql_union.cc:
        Applied the examine_rows bug fix from 4.0 by hand
      sql/sql_update.cc:
        New multi-update-grant-check code from 4.0
      sql/sql_yacc.yy:
        New multi-update-grant-check code from 4.0
      sql/stacktrace.c:
        merge
      sql/table.h:
        merge
      bbab9ec6
    • unknown's avatar
      Code cleanups while doing review of pushed code · fe463106
      unknown authored
      
      myisam/mi_locking.c:
        More comments
      sql/mysql_priv.h:
        Change mode to uint (as it's a bitmap)
      sql/sql_handler.cc:
        Change mode to uint (as it's a bitmap)
        Fixed DBUG_PRINT to use same format as other MySQL code
      fe463106
    • unknown's avatar
      forgot to remove ndbrequire · e82d3d49
      unknown authored
      
      ndb/test/run-test/atrt-mysql-test-run:
        ...
      e82d3d49
    • unknown's avatar
      bug#5736, subqueries and not in · 838af107
      unknown authored
      and testcases
      
      
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        bug#5736, subqueries and not in
      sql/ha_ndbcluster.cc:
        bug#5736, subqueries and not in
      838af107
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.0 · 95e1c074
      unknown authored
      into gw.mysql.r18.ru:/usr/home/ram/work/4.0.b5733
      
      
      sql/records.cc:
        Auto merged
      95e1c074
  3. 05 Oct, 2004 16 commits
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-4.1 · 89882d55
      unknown authored
      into brian-akers-computer.local:/Users/brian/mysql/mysql-4.1
      
      
      sql/examples/ha_archive.cc:
        Auto merged
      89882d55
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 4d93bb95
      unknown authored
      into mysql.com:/home/my/mysql-4.0
      
      
      sql/sql_table.cc:
        Auto merged
      4d93bb95
    • unknown's avatar
      Reverted patch for new usage of open_count as it caused more problems than it solved · 0d76cb7e
      unknown authored
      Cleaned up patch for checking locks for multi-table updates
      
      
      myisam/mi_close.c:
        Reverted patch for new usage of open_counts
      myisam/mi_locking.c:
        Reverted patch for new usage of open_counts
      sql/ha_myisam.cc:
        Reverted patch for new usage of open_counts
      sql/handler.cc:
        Removed compiler warning
      sql/sql_acl.cc:
        Removed compiler warning
      sql/sql_table.cc:
        No need to unlock after failed call to external_lock()
      sql/sql_update.cc:
        Cleaned up (and made it more secure) patch for checking locks for multi-table updates
      0d76cb7e
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 7d583c58
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-4.1-bf
      
      
      sql/field.cc:
        Auto merged
      7d583c58
    • unknown's avatar
      Fixed small bug in handling of pre-4.1 TIMESTAMP columns which was · ef92a390
      unknown authored
      introduced during implementation of TIMESTAMP columns, which are able 
      to store NULLs (Unfortunately it is impossible to write test case for
      this. Kudos to Holyfoot for noticing it!)
      
      
      sql/field.cc:
        Field_timestamp::get_auto_set_type(): To preserve compatibility 
        with pre-4.1 we have to handle TIMESTAMP_OLD_FIELD columns properly. 
        (It is ok to handle them as TIMESTAMP_DNUN_FIELD since value of first
         such column should be set to current timestamp on both INSERT and UPDATE
         operations, and we don't call this method for rest of them).
      ef92a390
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 28b0e7fe
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.5730
      
      
      28b0e7fe
    • unknown's avatar
      70a3abf2
    • unknown's avatar
      dict0mem.h: · 48ff8f4d
      unknown authored
        Fix typos in previous push
      
      
      innobase/include/dict0mem.h:
        Fix typos in previous push
      48ff8f4d
    • unknown's avatar
      Merge heikki@build.mysql.com:/home/bk/mysql-4.1 · 3e0df199
      unknown authored
      into hundin.mysql.fi:/home/heikki/mysql-4.1
      
      
      3e0df199
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 4390cd34
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      
      4390cd34
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.0 · cd430fbf
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.0
      
      
      cd430fbf
    • unknown's avatar
      Fix for #5730 (Query cache crashes server) · 1539b039
      unknown authored
      Recusive part leads to stack overflow
      
      
      sql/sql_cache.cc:
        Recursion removed from Query_cache::allocate_data_chain
      1539b039
    • unknown's avatar
      7121d374
    • unknown's avatar
      Merge marko@build.mysql.com:/home/bk/mysql-4.0 · 513ef79d
      unknown authored
      into hundin.mysql.fi:/home/marko/k/mysql-4.0
      
      
      513ef79d
    • unknown's avatar
      ha_innodb.cc: · 0b8c68ce
      unknown authored
        Raise maximum column prefix len to 767 bytes, so that MySQL can create a column prefix index of 255 UTF-8 characters (each takes 3 bytes at the maximum); add comments about why innobase_get_at_most_n_mbchars() works ok
      dict0mem.h:
        Raise maximum column prefix len to 767 bytes, so that MySQL can create a column prefix index of 255 UTF-8 characters (each takes 3 bytes at the maximum)
      row0mysql.c:
        If MySQL tries to create a column prefix index longer that 255 UTF-8 characters, give an error, and drop the table from the InnoDB internal data dictionary. MySQL did not drop the table there in its own error handling.
      
      
      innobase/row/row0mysql.c:
        If MySQL tries to create a column prefix index longer that 255 UTF-8 characters, give an error, and drop the table from the InnoDB internal data dictionary. MySQL did not drop the table there in its own error handling.
      innobase/include/dict0mem.h:
        Raise maximum column prefix len to 767 bytes, so that MySQL can create a column prefix index of 255 UTF-8 characters (each takes 3 bytes at the maximum)
      sql/ha_innodb.cc:
        Raise maximum column prefix len to 767 bytes, so that MySQL can create a column prefix index of 255 UTF-8 characters (each takes 3 bytes at the maximum); add comments about why innobase_get_at_most_n_mbchars() works ok
      0b8c68ce
    • unknown's avatar
      Merge marko@build.mysql.com:/home/bk/mysql-4.1 · fdbc804c
      unknown authored
      into hundin.mysql.fi:/home/marko/j/mysql-4.1
      
      
      fdbc804c