1. 18 May, 2005 1 commit
    • unknown's avatar
      Bug#10400 - Improperly-defined MERGE table crashes with INSERT ... ON DUPLICATE KEY UPDATE · 6f0ea859
      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().
      6f0ea859
  2. 16 May, 2005 5 commits
  3. 15 May, 2005 5 commits
    • unknown's avatar
      mysqltest.c: · 154862a9
      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
      154862a9
    • unknown's avatar
      mysqltest.c: · 86d36569
      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
      86d36569
    • unknown's avatar
      mtr_report.pl, mtr_process.pl, mysql-test-run.pl: · f9628329
      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
      f9628329
    • unknown's avatar
      mysql-test-run.pl: · eb25cc4a
      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"
      eb25cc4a
    • unknown's avatar
      mysqltest.c, mysql-test-run.sh: · 03dbe156
      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"
      03dbe156
  4. 14 May, 2005 3 commits
    • unknown's avatar
      Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-4.1 · 8963d671
      unknown authored
      into mysql.com:/Users/kent/mysql/cw/mysql-4.1
      
      8963d671
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 7e02fb06
      unknown authored
      into mysql.com:/home/my/mysql-4.1
      
      
      libmysql/libmysql.c:
        Auto merged
      sql/share/danish/errmsg.txt:
        Auto merged
      7e02fb06
    • unknown's avatar
      After merge fixes · 2fc28a36
      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
      2fc28a36
  5. 13 May, 2005 16 commits
    • unknown's avatar
    • unknown's avatar
      Fix wrong format specifier in error messages. · 588e5b52
      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.
      588e5b52
    • unknown's avatar
      Fix for BUG#9622: Make index statistics collection in MyISAM behave the same · c1bdd352
      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
      c1bdd352
    • unknown's avatar
      Merge with 4.0 · 4cda05b4
      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
      4cda05b4
    • unknown's avatar
      Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/ · 1d0d56ee
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      1d0d56ee
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 473244e1
      unknown authored
      into mysql.com:/home/my/mysql-4.1
      
      473244e1
    • 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
      sql/ha_blackhole.cc · d9ab7c3c
      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
      d9ab7c3c
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1 · 62de0dab
      unknown authored
      into mysql.com:/home/jimw/my/mysql-4.1-clean
      
      62de0dab
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-9603 · 147ac051
      unknown authored
      into mysql.com:/home/jimw/my/mysql-4.1-clean
      
      147ac051
    • unknown's avatar
      row0mysql.c: · 40224c76
      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)
      40224c76
    • unknown's avatar
      e425a507
    • unknown's avatar
      added function mysql_set_character_set (reviewed by Monty) · cb6681b3
      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
      cb6681b3
    • unknown's avatar
      Fixes during review · af207c39
      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
      af207c39
    • unknown's avatar
      readline.h: · 690e51f4
      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
      690e51f4
    • 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
  6. 12 May, 2005 1 commit
    • unknown's avatar
      If the system is under high load 'show full processlist' might report the · d80d8cc5
      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
      d80d8cc5
  7. 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
  8. 10 May, 2005 8 commits