1. 07 Nov, 2004 1 commit
    • unknown's avatar
      Simpler arena swapping code · 435b20aa
      unknown authored
      Now thd->mem_root is a pointer to thd->main_mem_root and THR_MALLOC is a pointer to thd->mem_root.
      This gives us the following benefits:
      - Allow us to easily detect if arena has already been swapped before (this fixes a bug in setup_conds() where arena was swaped twice in some cases)
      - Faster swaps of arenas (as we don't have to copy the whole MEM_ROOT)
      - We don't anymore have to call my_pthread_setspecific_ptr(THR_MALLOC,...) to change where memory is alloced. Now it's enough to set thd->mem_root
      
      
      
      client/mysqltest.c:
        Remove some not needed defines
        (Things like this should be done in config-win.h)
      include/config-win.h:
        Added popen() and pclose() compatibility macros
      mysql-test/t/rpl_failed_optimize-master.opt:
        Portability fix
      sql/ha_berkeley.cc:
        New thd->memroot handling
      sql/item_cmpfunc.cc:
        Simpler arena swapping code
      sql/item_func.cc:
        Simpler arena swapping code
      sql/item_subselect.cc:
        Simpler arena swapping code
        New thd->mem_root handling
      sql/item_sum.cc:
        New thd->mem_root handling
      sql/item_timefunc.cc:
        Fixed not-initalized usage errors found by valgrind
      sql/log_event.cc:
        New thd->mem_root handling
      sql/mysql_priv.h:
        New thd->mem_root handling
      sql/mysqld.cc:
        New thd->mem_root handling
      sql/opt_range.cc:
        New thd->mem_root handling
      sql/repl_failsafe.cc:
        New thd->mem_root handling
      sql/set_var.cc:
        New thd->mem_root handling
      sql/sql_acl.cc:
        New thd->mem_root handling
      sql/sql_base.cc:
        Simpler arena swapping code
        New thd->mem_root handling
      sql/sql_class.cc:
        New thd->mem_root handling
      sql/sql_class.h:
        Simpler arena swapping code
        New thd->mem_root handling
      sql/sql_db.cc:
        New thd->mem_root handling
      sql/sql_error.cc:
        New thd->mem_root handling
      sql/sql_help.cc:
        New thd->mem_root handling
      sql/sql_insert.cc:
        New thd->mem_root handling
      sql/sql_parse.cc:
        New thd->mem_root handling
        Added some extra checking of return value of new
      sql/sql_prepare.cc:
        New thd->mem_root handling
      sql/sql_select.cc:
        New thd->mem_root handling
      sql/sql_select.h:
        New thd->mem_root handling
      sql/sql_union.cc:
        Simpler arena swapping code
      sql/sql_yacc.yy:
        New thd->mem_root handling
      sql/table.cc:
        New thd->mem_root handling
      sql/thr_malloc.cc:
        New thd->mem_root handling
      tests/client_test.c:
        Added drop table to some tests
        Changed some table names to 't1'
      435b20aa
  2. 05 Nov, 2004 12 commits
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-4.1 · 43c6c27c
      unknown authored
      into mysql.com:/M41/mysql-4.1
      
      
      43c6c27c
    • unknown's avatar
      user_var.result, user_var.test: · 6608e22d
      unknown authored
        My previous change that "set @A=NULL" doesn't change charset
        fixed 'Bug #6321' as well. Prove with a new test that
        FIELD(<uservariable content NULL>, ...) now works fine too.
      
      
      mysql-test/t/user_var.test:
        My previous change that "set @A=NULL" doesn't change charset
        fixed 'Bug #6321' as well. Prove with a new test that
        FIELD(<uservariable content NULL>, ...) now works fine too.
      mysql-test/r/user_var.result:
        My previous change that "set @A=NULL" doesn't change charset
        fixed 'Bug #6321' as well. Prove with a new test that
        FIELD(<uservariable content NULL>, ...) now works fine too.
      6608e22d
    • unknown's avatar
      The new "Bootstrap" pushed in 4.0 with changeset "joerg:1.2057" is used for building · ac391280
      unknown authored
      _all_ versions. It tries to remove "Docs/Images/Makefile*" as part of the actions to
      correct bug number 6350. If the source tree does not contain a dummy file matching
      that pattern, this "rm" will fail, and so "Bootstrap" will fail.
      The "Makefile.am" introduced with this changeset is identical to the one that will
      arrive here when "joerg:1.2057" is propagated from 4.0,
      so this separate introduction here is just to allow "Bootstraps" in the meantime.
      
      
      ac391280
    • unknown's avatar
      As it is wrong and confusing to associate any · aee1e78a
      unknown authored
      character set with NULL, @A should be latin2
      after this query sequence:
      
         SET @A=_latin2'string';
         SET @A=NULL;
      
      I.e. the second query should not change the charset
      to the current default value, but should keep the
      original value assigned during the first query.
      In order to do it, we don't copy charset
      from the argument if the argument is NULL
      and the variable has previously been initialized.
      
      
      mysql-test/r/ps_6bdb.result:
        t
      mysql-test/r/ps_5merge.result:
        t
      mysql-test/r/ps_3innodb.result:
        t
      mysql-test/r/ps_7ndb.result:
        t
      mysql-test/r/ps_4heap.result:
        t
      mysql-test/r/ps_2myisam.result:
        t
      sql/item_func.cc:
        t
      aee1e78a
    • unknown's avatar
      Merge mskold@bk-internal.mysql.com:/home/bk/mysql-4.1 · d4973341
      unknown authored
      into mysql.com:/usr/local/home/marty/MySQL/test/mysql-4.1
      
      
      d4973341
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1 · b38510ec
      unknown authored
      into rurik.mysql.com:/home/igor/mysql-4.1
      
      
      b38510ec
    • unknown's avatar
      ps.result, ctype_ucs.result, ctype_ucs.test, ps.test: · 8264d83d
      unknown authored
        Bug #6351 make test failure "Unknown character set"
        UCS2 related tests were moved into ctype_ucs.
      
      
      mysql-test/t/ps.test:
        Bug #6351 make test failure "Unknown character set"
        UCS2 related tests were moved into ctype_ucs.
        Bug #6351 make test failure "Unknown character set"
        UCS2 related tests were moved into ctype_ucs.
      mysql-test/t/ctype_ucs.test:
        Bug #6351 make test failure "Unknown character set"
        UCS2 related tests were moved into ctype_ucs.
      mysql-test/r/ctype_ucs.result:
        Bug #6351 make test failure "Unknown character set"
        UCS2 related tests were moved into ctype_ucs.
      mysql-test/r/ps.result:
        Bug #6351 make test failure "Unknown character set"
        UCS2 related tests were moved into ctype_ucs.
      8264d83d
    • unknown's avatar
      mysqldump.c: · 85941cf5
      unknown authored
        - 'mysqldump --help' comment that --xeh-blob
          doesn't work with --extended-inserts was removed.
          It does work now. Thanks to Lachlan
          who noticed this wrong help message.
        - Switched to use the recently introduced
          mysql_hex_string() instead of slow sprintf().
          Thanks to Sinisa for the idea.
        - 'mysqldump --hex-blob' dumps in HEX not only
          BLOBs but also BINARY(x) columns. 
          Thanks to Paul.
      
      
      client/mysqldump.c:
        - comment that --xeh-blob doesn't work with --extended-inserts was removed. It does work now.
        - Switched to use recently introduced mysql_hex_string()
          instead of sprintf()
        - BINARY(x) are dumped in HEX too
      85941cf5
    • unknown's avatar
      libmysql.def, libmysql.c: · 0a4984a4
      unknown authored
        Minor clean-ups
      
      
      libmysql/libmysql.c:
        Minor clean-ups
      libmysql/libmysql.def:
        bk commit
      0a4984a4
    • unknown's avatar
      Merge rurik.mysql.com:/home/igor/mysql-4.1 · 72c93eb1
      unknown authored
      into rurik.mysql.com:/home/igor/dev/mysql-4.1-0
      
      
      72c93eb1
    • unknown's avatar
      func_in.result, func_in.test: · 62ded37e
      unknown authored
        Added a case for bug #6365.
      item_cmpfunc.cc:
        Fixed bug #6365 : Server crashed when list of values
        in IN predicate contains NULL while the tested field is
        of the character type and not of the default set;
        e.g. when f in 'f IN (NULL,'aa') belongs to binary
        character set, while the default character set is latin1.
      
      
      sql/item_cmpfunc.cc:
        Fixed bug #6365 : Server crash when list of values
        in IN predicate contains NULL while the tested field is
        of the character type of not of the default set
        e.g. when f in 'f IN (NULL,'aa') belongs to binary
        character set, while the default character set is latin1.
      mysql-test/t/func_in.test:
        Added a case for bug #6365.
      mysql-test/r/func_in.result:
        Added a case for bug #6365.
      62ded37e
    • unknown's avatar
      mysqladmin.c: · c52f3942
      unknown authored
        Missing initialized for "lengths" element.
        ,
      
      
      client/mysqladmin.c:
        Missing initialized for "lengths" element.
        ,
      c52f3942
  3. 04 Nov, 2004 20 commits
  4. 03 Nov, 2004 7 commits
    • unknown's avatar
      ibuf0ibuf.c: · 66191b22
      unknown authored
        Do not print to .err log about discarding ibuf entries in DISCARD TABLESPACE; removed compiler warning about unused variable
      
      
      innobase/ibuf/ibuf0ibuf.c:
        Do not print to .err log about discarding ibuf entries in DISCARD TABLESPACE; removed compiler warning about unused variable
      66191b22
    • unknown's avatar
      InnoDB: commit after every 10000 rows in ALTER TABLE · d07f96cf
      unknown authored
      
      innobase/include/lock0lock.h:
        Added function lock_get_ix_table()
      innobase/include/row0mysql.h:
        Added parameter "table" to row_lock_table_for_mysql()
      innobase/lock/lock0lock.c:
        Added function lock_get_ix_table()
      innobase/row/row0mysql.c:
        Added parameter "table" to row_lock_table_for_mysql()
      sql/ha_innodb.cc:
        write_row(): commit every 10000 rows in ALTER TABLE
      sql/ha_innodb.h:
        Added member variable num_write_row
      d07f96cf
    • unknown's avatar
      NDB blobs - try to handle insert-update-delete under autocommit=0 · 35ded492
      unknown authored
      
      ndb/src/ndbapi/ndberror.c:
        826 error text
      mysql-test/r/ndb_blob.result:
        result displayed error
      mysql-test/t/ndb_blob.test:
        result displayed error
      ndb/src/ndbapi/NdbBlob.cpp:
        update head+inline earlier
      ndb/src/ndbapi/NdbOperationExec.cpp:
        blob IgnoreError bug
      ndb/test/ndbapi/testBlobs.cpp:
        tried to set non-nullable to null, causing a complex abort case
      ndb/src/ndbapi/NdbConnection.cpp:
        prepared ops CAN be left in complex abort
      35ded492
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · ccc9f213
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      
      ccc9f213
    • unknown's avatar
      Merge mysql.com:/home/bkroot/mysql-4.1 · dc1e7edb
      unknown authored
      into mysql.com:/home/bk/b5551-4.1-v4
      
      
      dc1e7edb
    • unknown's avatar
      Fix for bug#5551 (Version 4). · 539e2130
      unknown authored
      The idea of the fix is that the administrative statements 
      OPTIMIZE TABLE, REPAIR TABLE and ANALYZE TABLE should not 
      generate binlog errors if there is no errors on the master.
      
      
      sql/sql_parse.cc:
        No binlog error generated
      sql/sql_table.cc:
        Documentation
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      539e2130
    • unknown's avatar
      Fix for bug#6398 update of primary key fails · 9caa9f9c
      unknown authored
      9caa9f9c