1. 04 Jul, 2005 2 commits
  2. 02 Jul, 2005 1 commit
    • unknown's avatar
      configure.in: · 8c4d2838
      unknown authored
        Enable build with CXX=gcc and gcc version 4
      
      
      configure.in:
        Enable build with CXX=gcc and gcc version 4
      8c4d2838
  3. 30 Jun, 2005 1 commit
  4. 23 Jun, 2005 1 commit
  5. 08 Jun, 2005 1 commit
    • unknown's avatar
      Fix for · 72793e7b
      unknown authored
      BUG#10675 - MySQL fails to build with --openssl on Mac OS X 10.4
      BUG#11150 - HP-UX yaSSL/OpenSSL configure/header problem
      Remove obsolete code.
      
      
      include/my_global.h:
        Obsolete code removed. OpenSSL doesn't have crypt anymore (it was dropped in ~2003).
        This patch fixes compilation failures with both OpenSSL and yaSSL on systems where
        crypt was defined in unistd.h.
        Conclusion is we do not use OpenSSL's crypt unless it wasn't defined in
        unistd.h/crypt.h and it was defined in old OpenSSL.
      72793e7b
  6. 06 Jun, 2005 1 commit
  7. 03 Jun, 2005 5 commits
    • unknown's avatar
      Bug #10901 · c17c03f2
      unknown authored
      After review fix
      Copy from internal state to share state only when in lock write
      mode (happens only when lock table x write has been performed since
      update_state_info is only called when holding a TL_READ_NO_INSERT
      lock normally. Previous patch would have failed in combination with
      delayed writes.
      
      c17c03f2
    • unknown's avatar
      Bug #10901 · 74126079
      unknown authored
      Analyze table corrupts the state on
      data_file_length, records, index_file_length...
      by writing the shared state when there is an updated internal
      state due to inserts or deletes
      Fixed by synching the shared state with the internal state before
      writing it to disk
      Added test cases of 2 error cases and a normal case in new
      analyze test case
      
      
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      74126079
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.0/ · cf0f4a63
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.0
      
      cf0f4a63
    • unknown's avatar
      *don't* mess with kernel defines, boy. · 54f236d6
      unknown authored
      and HAVE_ATOMIC_ADD/HAVE_ATOMIC_SUB is tested in configure
      
      54f236d6
    • unknown's avatar
      sql_repl.cc: · 28c58b05
      unknown authored
        Bug #11064  	some read error not detected in replication on 64-bit platform
      
      
      sql/sql_repl.cc:
        Bug #11064  	some read error not detected in replication on 64-bit platform
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      28c58b05
  8. 01 Jun, 2005 1 commit
    • unknown's avatar
      - removed references to some obsolete files (BUG#10824) · 3a192cf5
      unknown authored
      - removed obsolete mysql-max.spec.sc RPM spec file (Max is built out of the standard
        spec file)
      
      
      BitKeeper/deleted/.del-mysql-max.spec.sh~ca055d86585c1010:
        Delete: support-files/mysql-max.spec.sh
      configure.in:
        - removed references to some obsolete files
      scripts/make_binary_distribution.sh:
        - removed references to some obsolete files
      3a192cf5
  9. 31 May, 2005 1 commit
    • unknown's avatar
      Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement. · 1ba82d32
      unknown authored
      1.) Added a new option to mysql_lock_tables() for ignoring FLUSH TABLES.
      Used the new option in create_table_from_items().
      It is necessary to prevent the SELECT table from being reopend.
      It would get new storage assigned for its fields, while the
      SELECT part of the command would still use the old (freed) storage.
      2.) Protected the CREATE TABLE and CREATE TABLE ... SELECT commands
      against a global read lock. This prevents a deadlock in
      CREATE TABLE ... SELECT in conjunction with FLUSH TABLES WITH READ LOCK
      and avoids the creation of new tables during a global read lock.
      3.) Replaced set_protect_against_global_read_lock() and
      unset_protect_against_global_read_lock() by
      wait_if_global_read_lock() and start_waiting_global_read_lock()
      in the INSERT DELAYED handling.
      
      
      mysql-test/r/create.result:
        Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
        Added test results.
      mysql-test/t/create.test:
        Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
        Added tests which do not require concurrency.
      sql/lock.cc:
        Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
        Added a new option to mysql_lock_tables() for ignoring FLUSH TABLES.
        Changed the parameter list.
        Removed two unnecessary functions. Their functionality is included in
        wait_if_global_read_lock() and start_waiting_global_read_lock().
      sql/mysql_priv.h:
        Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
        Changed the declaration of mysql_lock_tables().
        Added definitions for the new options.
      sql/sql_acl.cc:
        Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
        Adjusted mysql_lock_tables() calls to the new argument list.
      sql/sql_base.cc:
        Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
        Adjusted mysql_lock_tables() calls to the new argument list.
      sql/sql_handler.cc:
        Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
        Adjusted mysql_lock_tables() calls to the new argument list.
      sql/sql_insert.cc:
        Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
        Replaced set_protect_against_global_read_lock() and
        unset_protect_against_global_read_lock() by
        wait_if_global_read_lock() and start_waiting_global_read_lock()
        in the INSERT DELAYED handling.
        Adjusted mysql_lock_tables() calls to the new argument list.
      sql/sql_parse.cc:
        Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
        Protected the CREATE TABLE and CREATE TABLE ... SELECT commands
        against a global read lock. This prevents a deadlock in
        CREATE TABLE ... SELECT in conjunction with FLUSH TABLES WITH READ LOCK
        and avoids the creation of new tables during a global read lock.
      sql/sql_table.cc:
        Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
        Adjusted mysql_lock_tables() calls to the new argument list.
        Used the new option in create_table_from_items().
      1ba82d32
  10. 26 May, 2005 2 commits
  11. 25 May, 2005 1 commit
  12. 18 May, 2005 2 commits
  13. 15 May, 2005 2 commits
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.0 · bb386aaa
      unknown authored
      into mysql.com:/home/psergey/mysql-4.0-bug10095
      
      bb386aaa
    • unknown's avatar
      Fix for BUG#10095: {wrong query results because of incorrect constant propagation} · 53d55034
      unknown authored
      The problem: base_list::remove didn't modify base_list::last when removing 
      the last list element.
      The fix: If we remove the last element, find the element before it (by walking
      from the beginning of the list) and set base_list::last accordingly.
      
      The list gets corrupted in both 4.0 and 4.1. There are no visible problems in 
      current 4.1 because current 4.1 doesn't call where_cond->fix_fields() after 
      constant propagation step.
      
      
      mysql-test/r/select.result:
        Testcase for BUG#10095
      mysql-test/t/select.test:
        Testcase for BUG#10095
      sql/sql_list.h:
        Fix for BUG#10095: {wrong query results because of incorrect constant propagation} 
        The problem: base_list::remove didn't modify base_list::last when removing 
        the last list element.
        The fix: If we remove the last element, find the element before it (by walking
        from the beginning of the list) and set base_list::last accordingly.
      53d55034
  14. 14 May, 2005 1 commit
  15. 13 May, 2005 2 commits
    • unknown's avatar
      Fixed wrong buffer usage for auto-increment key with blob part that caused... · d984cdf6
      unknown authored
      Fixed wrong buffer usage for auto-increment key with blob part that caused CHECK TABLE to report that the table was wrong. (Bug #10045)
      
      
      myisam/mi_key.c:
        Fixed wrong buffer usage for auto-increment key with blob part that caused
        CHECK TABLE to report that the table was wrong. (Bug #10045)
      mysql-test/r/auto_increment.result:
        New test case
      mysql-test/t/auto_increment.test:
        New test case
      d984cdf6
    • unknown's avatar
      Change create_field->offset to store offset from start of fields, independent of null bits. · d19e0585
      unknown authored
      Count null_bits separately from field offsets and adjust them in case of primary key parts.
      (Previously a CREATE TABLE with a lot of null fields that was part of a primary key caused MySQL to wrongly count the number of bytes needed to store null bits)
      This is a more complete bug fix for #6236
      
      
      mysql-test/r/alter_table.result:
        More test for bug #6236 (CREATE TABLE didn't properly count not null columns for primary keys)
      mysql-test/t/alter_table.test:
        More test for bug #6236 (CREATE TABLE didn't properly count not null columns for primary keys)
      sql/handler.h:
        Add counter for null fields
      sql/sql_table.cc:
        Change create_field->offset to store offset from start of fields, independent of null bits.
        Count null_bits separately from field offsets and adjust them in case of primary key parts.
      sql/unireg.cc:
        Change create_field->offset to store offset from start of fields, independent of null bits.
        Count null_bits separately from field offsets and adjust them in case of primary key parts.
      d19e0585
  16. 11 May, 2005 1 commit
    • unknown's avatar
      mysqldump.1.in: · 95ab9ed3
      unknown authored
        Remove obsolete section number. (Bug #10534)
      
      
      man/mysqldump.1.in:
        Remove obsolete section number. (Bug #10534)
      95ab9ed3
  17. 09 May, 2005 1 commit
  18. 08 May, 2005 4 commits
    • unknown's avatar
      Merge acurtis@bk-internal.mysql.com:/home/bk/mysql-4.0 · d78ff805
      unknown authored
      into ltantony.mysql.com:/usr/home/antony/work2/megapatch-4.0
      
      
      BitKeeper/etc/logging_ok:
        auto-union
      d78ff805
    • unknown's avatar
      Merge ltantony.mysql.com:/usr/home/antony/work2/p4-bug8191 · 3c6e8525
      unknown authored
      into ltantony.mysql.com:/usr/home/antony/work2/megapatch-4.0
      
      
      BitKeeper/etc/logging_ok:
        auto-union
      3c6e8525
    • unknown's avatar
      Bug#8191 - SELECT INTO OUTFILE insists on FROM clause · 803bbd96
      unknown authored
        Fix bug + include test case.
        Enable outfile tests.
      
      
      mysql-test/t/outfile.test:
        Reenable outfile tests
        Add test for Bug#8191
      sql/sql_yacc.yy:
        Fix Bug#8191
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      803bbd96
    • unknown's avatar
      Bug#6236 · 454070c1
      unknown authored
        Incomplete ALTER TABLE breaks MERGE compatibility
        Fix implicit NOT NULL not set on ALTER of PK columns
      
      
      mysql-test/r/alter_table.result:
        Test for Bug#6236
      mysql-test/t/alter_table.test:
        Test for Bug#6236
      sql/sql_table.cc:
        Implicit NOT NULL not set on ALTER of PK columns
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      454070c1
  19. 07 May, 2005 8 commits
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.0 · e12ebe16
      unknown authored
      into ultrafly.mysql.com:/Users/mwagner/work/bk/mysql-4.0
      
      
      BitKeeper/etc/logging_ok:
        auto-union
      e12ebe16
    • unknown's avatar
      Merge svojtovich@bk-internal.mysql.com:/home/bk/mysql-4.0 · 6602cdba
      unknown authored
      into mysql.com:/home/svoj/devel/mysql/7709-mysql-4.0
      
      
      BitKeeper/etc/logging_ok:
        auto-union
      6602cdba
    • unknown's avatar
      Test fix. DROP TABLE added. · f8ea8bd9
      unknown authored
      f8ea8bd9
    • unknown's avatar
      Backport fix for escaping multibyte characters. (Bug #9864) · 1b835506
      unknown authored
      
      libmysql/libmysql.c:
        Backport fix for escaping multibyte characters from 4.1
      1b835506
    • unknown's avatar
      errmsg.txt: · 8bae8459
      unknown authored
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      
      
      sql/share/czech/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/danish/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/dutch/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/english/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/estonian/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/french/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/german/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/greek/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/hungarian/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/italian/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/japanese/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/korean/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/norwegian/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/norwegian-ny/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/polish/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/portuguese/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/romanian/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/russian/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/slovak/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/spanish/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/swedish/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      sql/share/ukrainian/errmsg.txt:
        Add newline at EOF for proper processing by comp-err.exe on Windows where fgets() works differently than Linux (Bug #6195).
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      8bae8459
    • unknown's avatar
      BUG#7709 fix - Boolean fulltext query against unsupported engines does not · 45fbee53
      unknown authored
      fail.
      
      
      mysql-test/r/innodb.result:
        Test case for BUG#7709 - Boolean fulltext query against
        unsupported engines does not fail added.
      mysql-test/t/innodb.test:
        Test case for BUG#7709 - Boolean fulltext query against
        unsupported engines does not fail added.
      sql/item_func.cc:
        Check if table supports fulltext.
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      45fbee53
    • unknown's avatar
      Merge lgrimmer@bk-internal.mysql.com:/home/bk/mysql-4.0 · cef9fb96
      unknown authored
      into mysql.com:/space/my/mysql-4.0
      
      cef9fb96
    • unknown's avatar
      [backport of 4.1, because 4.0 autobuild now hits the same problem; · 6649c9fb
      unknown authored
      when merging just use "ul"] In configure.in, don't remove $AVAILABLE_LANGUAGES_ERRORS_RULES at end
      because config.status may later need this file (if it does not find it
      it won't incorporate dependencies of errmsg.sys in sql/share/Makefile).
      In sql/share/Makefile.am using "all:" leads to double-"all:" in Makefile.
      
      
      configure.in:
        Don't remove $AVAILABLE_LANGUAGES_ERRORS_RULES at end of configure.in
        because config.status may later need this file (if it does not find it
        it won't incorporate dependencies of errmsg.sys in sql/share/Makefile :( )
      sql/share/Makefile.am:
        using "all:" leads to double-"all:" in Makefile (counting the auto-generated);
        all-local is the standard way to :
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      6649c9fb
  20. 06 May, 2005 2 commits