1. 18 May, 2005 1 commit
    • unknown's avatar
      Bug#10400 - Improperly-defined MERGE table crashes with INSERT ... ON DUPLICATE KEY UPDATE · 0461b482
      unknown authored
      After review version.
      Added a condition for MERGE tables. These do not have unique
      indexes. But every key could be a unique key on the underlying
      MyISAM table. So get the maximum key length for MERGE tables
      instead of the maximum unique key length. This is used for
      buffer allocation in write_record().
      
      
      mysql-test/r/merge.result:
        Bug#10400 - Improperly-defined MERGE table crashes with INSERT ... ON DUPLICATE KEY UPDATE
        The test result.
      mysql-test/t/merge.test:
        Bug#10400 - Improperly-defined MERGE table crashes with INSERT ... ON DUPLICATE KEY UPDATE
        The test case does not in all cases show the problem
        without the bugfix. The improper memory allocation
        might get through undetected in many cases.
      sql/ha_myisammrg.h:
        Bug#10400 - Improperly-defined MERGE table crashes with INSERT ... ON DUPLICATE KEY UPDATE
        Set a table_flag for the MERGE engine telling that any index
        might be unique without being specified as such.
      sql/handler.h:
        Bug#10400 - Improperly-defined MERGE table crashes with INSERT ... ON DUPLICATE KEY UPDATE
        Added a new table_flag telling that any index
        might be unique without being specified as such.
      sql/sql_insert.cc:
        Bug#10400 - Improperly-defined MERGE table crashes with INSERT ... ON DUPLICATE KEY UPDATE
        Changed the freeing of the memory to be symmetric to its
        allocation (my_safe_alloc -> my_safe_afree).
        This is not directly related to the bug.
      sql/table.cc:
        Bug#10400 - Improperly-defined MERGE table crashes with INSERT ... ON DUPLICATE KEY UPDATE
        Added a condition for MERGE tables. These do not have unique
        indexes. But every key could be a unique key on the underlying
        MyISAM table. So get the maximum key length for MERGE tables
        instead of the maximum unique key length. This is used for
        buffer allocation in write_record().
      0461b482
  2. 16 May, 2005 5 commits
  3. 15 May, 2005 5 commits
    • unknown's avatar
      mysqltest.c: · 94f3584b
      unknown authored
        To solve bug#8455, call mysql_affected_rows() earlier, before query to find warnings
      
      
      client/mysqltest.c:
        To solve bug#8455, call mysql_affected_rows() earlier, before query to find warnings
      94f3584b
    • unknown's avatar
      mysqltest.c: · 8fd8d819
      unknown authored
        To solve bug#6193, also reset require when using 'eval' for running query
      mysql-test-run.pl:
        In cleanup, remove possible soft link to var directory
      
      
      mysql-test/mysql-test-run.pl:
        In cleanup, remove possible soft link to var directory
      client/mysqltest.c:
        To solve bug#6193, also reset require when using 'eval' for running query
      8fd8d819
    • unknown's avatar
      mtr_report.pl, mtr_process.pl, mysql-test-run.pl: · bea0e79f
      unknown authored
        Added option --vardir=<directory> for feature bug#10096
      
      
      mysql-test/mysql-test-run.pl:
        Added option --vardir=<directory> for feature bug#10096
      mysql-test/lib/mtr_process.pl:
        Added option --vardir=<directory> for feature bug#10096
      mysql-test/lib/mtr_report.pl:
        Added option --vardir=<directory> for feature bug#10096
      bea0e79f
    • unknown's avatar
      mysql-test-run.pl: · 657469ba
      unknown authored
        Not to conflict with Windows return code 2 for "not found", use 62 for "skip"
      init_db.sql:
        Initial db updates
      
      
      mysql-test/lib/init_db.sql:
        Initial db updates
      mysql-test/mysql-test-run.pl:
        Not to conflict with Windows return code 2 for "not found", use 62 for "skip"
      657469ba
    • unknown's avatar
      mysqltest.c, mysql-test-run.sh: · f4425b50
      unknown authored
        Not to conflict with Windows return code 2 for "not found", use 62 for "skip"
      mysql-test-run.sh, suppress.purify:
        Use Purify suppress file
      
      
      mysql-test/suppress.purify:
        Purify suppress file
      mysql-test/mysql-test-run.sh:
        Use Purify suppress file
        Not to conflict with Windows return code 2 for "not found", use 62 for "skip"
      client/mysqltest.c:
        Not to conflict with Windows return code 2 for "not found", use 62 for "skip"
      f4425b50
  4. 14 May, 2005 3 commits
    • unknown's avatar
      Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-4.1 · fe302e58
      unknown authored
      into mysql.com:/Users/kent/mysql/cw/mysql-4.1
      
      
      fe302e58
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 78f2e7b5
      unknown authored
      into mysql.com:/home/my/mysql-4.1
      
      
      libmysql/libmysql.c:
        Auto merged
      sql/share/danish/errmsg.txt:
        Auto merged
      78f2e7b5
    • unknown's avatar
      After merge fixes · 2059908b
      unknown authored
      
      BitKeeper/deleted/.del-outfile2.result~fb702ee2518d8e6d:
        Delete: mysql-test/r/outfile2.result
      libmysql/libmysql.c:
        Fix indentation for new function mysql_set_character_set()
      mysql-test/r/alter_table.result:
        Fix test to be in same order as in 4.0
      mysql-test/r/innodb.result:
        After merge fix
      mysql-test/r/insert_update.result:
        Add extra test for insert into ... on duplicate key upate
      mysql-test/r/outfile.result:
        After merge fix
      mysql-test/t/alter_table.test:
        Fix test to be in same order as in 4.0
      mysql-test/t/insert_update.test:
        Add extra test for insert into ... on duplicate key upate
      mysql-test/t/outfile.test:
        After merge fix
      sql/item_func.cc:
        After merge fix
      sql/sql_table.cc:
        After merge fix
      2059908b
  5. 13 May, 2005 16 commits
    • unknown's avatar
    • unknown's avatar
      Fix wrong format specifier in error messages. · 752372f6
      unknown authored
      Not to be pushed into 5.0 as there it's fixed differently (in the new
      format of error messages)
      
      
      sql/share/danish/errmsg.txt:
        Fix wrong format specifier in an error message.
      sql/share/serbian/errmsg.txt:
        Fix wrong format specifier in an error message.
      752372f6
    • unknown's avatar
      Fix for BUG#9622: Make index statistics collection in MyISAM behave the same · f8bb8923
      unknown authored
      way in ALTER TABLE ... ENABLE KEYS, ANALYZE TABLE and after bulk insert:
      now statistics collection always assumes NULLs are inequal. 
      
      
      mysql-test/r/myisam.result:
        Testcase for BUG#9622
      mysql-test/t/myisam.test:
        Testcase for BUG#9622
      f8bb8923
    • unknown's avatar
      Merge with 4.0 · 037b0a7b
      unknown authored
      
      BitKeeper/etc/logging_ok:
        auto-union
      mysql-test/r/outfile2.result:
        Merge rename: mysql-test/r/outfile.result -> mysql-test/r/outfile2.result
      myisam/mi_key.c:
        Auto merged
      mysql-test/r/alter_table.result:
        Auto merged
      mysql-test/r/auto_increment.result:
        Auto merged
      mysql-test/r/innodb.result:
        Auto merged
      mysql-test/t/auto_increment.test:
        Auto merged
      mysql-test/t/innodb.test:
        Auto merged
      sql/handler.h:
        Auto merged
      mysql-test/t/alter_table.test:
        Merge
      mysql-test/t/outfile.test:
        Merge
      sql/item_func.cc:
        Merge
      sql/share/czech/errmsg.txt:
        Merge
      sql/share/danish/errmsg.txt:
        Merge
      sql/share/dutch/errmsg.txt:
        Merge
      sql/share/english/errmsg.txt:
        Merge
      sql/share/estonian/errmsg.txt:
        Merge
      sql/share/french/errmsg.txt:
        Merge
      sql/share/german/errmsg.txt:
        Merge
      sql/share/greek/errmsg.txt:
        Merge
      sql/share/hungarian/errmsg.txt:
        Merge
      sql/share/italian/errmsg.txt:
        Merge
      sql/share/japanese/errmsg.txt:
        Merge
      sql/share/korean/errmsg.txt:
        Merge
      sql/share/norwegian-ny/errmsg.txt:
        Merge
      sql/share/norwegian/errmsg.txt:
        Merge
      sql/share/polish/errmsg.txt:
        Merge
      sql/share/portuguese/errmsg.txt:
        Merge
      sql/share/romanian/errmsg.txt:
        Merge
      sql/share/russian/errmsg.txt:
        Merge
      sql/share/slovak/errmsg.txt:
        Merge
      sql/share/spanish/errmsg.txt:
        Merge
      sql/share/swedish/errmsg.txt:
        Merge
      sql/share/ukrainian/errmsg.txt:
        Merge
      sql/sql_table.cc:
        Merge
      sql/sql_yacc.yy:
        Keep old
      sql/unireg.cc:
        Merge
      037b0a7b
    • unknown's avatar
      Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/ · e571163e
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      
      e571163e
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 04890a2e
      unknown authored
      into mysql.com:/home/my/mysql-4.1
      
      
      04890a2e
    • unknown's avatar
      Fixed wrong buffer usage for auto-increment key with blob part that caused... · cdd6bc9b
      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
      cdd6bc9b
    • unknown's avatar
      sql/ha_blackhole.cc · c3f73a42
      unknown authored
          bug#10175 - blackhole.test hangs with "Warning: prev link 1 didn't point at previous lock at read: read lock with no write locks"
      sql/sql_base.cc
          libmysqld/examples/mysql.cc linking problem
      
      
      sql/ha_blackhole.cc:
        bug#10175 - blackhole.test hangs with "Warning: prev link 1 didn't point at previous lock at read: read lock with no write locks"
      sql/sql_base.cc:
        libmysqld/examples/mysql.cc linking problem
      c3f73a42
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1 · 2b518223
      unknown authored
      into mysql.com:/home/jimw/my/mysql-4.1-clean
      
      
      2b518223
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-9603 · c4dcc43e
      unknown authored
      into mysql.com:/home/jimw/my/mysql-4.1-clean
      
      
      c4dcc43e
    • unknown's avatar
      row0mysql.c: · c4a1210f
      unknown authored
        InnoDB wrongly complained in the .err log that MySQL is trying to drop a non-existent table, if tablespace ran out (Bug #10607)
      
      
      innobase/row/row0mysql.c:
        InnoDB wrongly complained in the .err log that MySQL is trying to drop a non-existent table, if tablespace ran out (Bug #10607)
      c4a1210f
    • unknown's avatar
      92cb62c8
    • unknown's avatar
      added function mysql_set_character_set (reviewed by Monty) · 29f3f4a2
      unknown authored
      as a work around for #8317 and #9637
      
      This function sends SET NAMES command and changes mysql->charset
      so mysql_real_escape_string will work as expected.
      
      
      libmysql/libmysql.def:
        added new function mysql_set_character_set
      29f3f4a2
    • unknown's avatar
      Fixes during review · 2a695127
      unknown authored
      
      mysql-test/r/select.result:
        Better error message
      mysql-test/t/select.test:
        Better error message
      sql/hostname.cc:
        Join identical code
      sql/sql_yacc.yy:
        Combine code (and get a better error message)
      strings/ctype-ucs2.c:
        Cast pointer differencess
      2a695127
    • unknown's avatar
      readline.h: · 89ef3990
      unknown authored
        Include <sys/ttydefaults.h> for CodeWarrior and CTRL define
      
      
      cmd-line-utils/libedit/readline/readline.h:
        Include <sys/ttydefaults.h> for CodeWarrior and CTRL define
      89ef3990
    • unknown's avatar
      Change create_field->offset to store offset from start of fields, independent of null bits. · 7c441dd1
      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.
      7c441dd1
  6. 12 May, 2005 1 commit
    • unknown's avatar
      If the system is under high load 'show full processlist' might report the · cbbc4ff6
      unknown authored
      process of the predecessing test case instead of the current test case. 
      Shifting the command to the end of the current test case should avoid this problem. 
      
      
      mysql-test/r/ps_grant.result:
        Updated result
      mysql-test/t/ps_grant.test:
        Shift ' show full processlist ' to the end of the test script
      cbbc4ff6
  7. 11 May, 2005 1 commit
    • unknown's avatar
      mysqldump.1.in: · 913e2e12
      unknown authored
        Remove obsolete section number. (Bug #10534)
      
      
      man/mysqldump.1.in:
        Remove obsolete section number. (Bug #10534)
      913e2e12
  8. 10 May, 2005 8 commits