1. 22 Aug, 2004 5 commits
  2. 21 Aug, 2004 3 commits
    • unknown's avatar
      libedit safety fix: account for closing \0 · fe450cd7
      unknown authored
      
      cmd-line-utils/libedit/history.c:
        account for closing \0
      fe450cd7
    • unknown's avatar
      Fix to skip flush_block_commit test if the server was compiled · 5803d603
      unknown authored
      without InnoDB.
      
      
      5803d603
    • unknown's avatar
      null.test, null.result: · c1fd20bb
      unknown authored
        Added test case for bug #4256.
      join_outer.result:
        Fixed bug #4256.
      item_cmpfunc.h:
        Fixed inconsistency of values of used_tables_cache and
        const_item_cache for Item_func_isnull objects.
        This inconsistency caused bug #4256.
      
      
      sql/item_cmpfunc.h:
        Fixed inconsistency of values of used_tables_cache and
        const_item_cache for Item_func_isnull objects.
        This inconsistency caused bug #4256.
      mysql-test/r/join_outer.result:
        Fixed bug #4256.
      mysql-test/r/null.result:
        Added test case for bug #4256.
      mysql-test/t/null.test:
        Added test case for bug #4256.
      c1fd20bb
  3. 20 Aug, 2004 32 commits
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1 · 7c462524
      unknown authored
      into rurik.mysql.com:/home/igor/mysql-4.1
      
      
      sql/item_sum.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      7c462524
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1 · 6bccd366
      unknown authored
      into rurik.mysql.com:/home/igor/mysql-4.1
      
      
      6bccd366
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 282ec5bd
      unknown authored
      into mysql.com:/home/kostja/work/mysql-4.1-4912
      
      
      sql/item_cmpfunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      282ec5bd
    • unknown's avatar
      Fix for bug#4912 "mysqld crashs in case a statement is executed · 095b686c
      unknown authored
       a second time". The bug was caused by incompatibility of
      negations elimination algorithm and PS: during first statement 
      execute a subtree with negation was replaced with equivalent 
      subtree without NOTs.
      The problem was that although this transformation was permanent, 
      items of the new subtree were created in execute-local memory.
      The patch adds means to check if it is the first execute of a
      prepared statement, and if this is the case, to allocate items
      in memory of the prepared statement.
      The implementation:
      - backports Item_arena from 5.0
      - adds Item_arena::is_stmt_prepare(), 
        Item_arena::is_first_stmt_execute().
      - deletes THD::allocate_temporary_pool_for_ps_preparing(),
        THD::free_temporary_pool_for_ps_preparing(); they
        were redundant.
      and adds a few invariants:
      - thd->free_list never contains junk (= freed items)
      - thd->current_arena is never null. If there is no
        prepared statement, it points at the thd. 
      The rest of the patch contains mainly mechanical changes and
      cleanups.
      
      
      mysql-test/r/ps.result:
        Test results updated (test case for Bug#4912)
      mysql-test/t/ps.test:
        A test case for Bug#4912 "mysqld crashs in case a statement is 
        executed a second time"
      sql/item_cmpfunc.cc:
        current_statement -> current_arena
      sql/item_subselect.cc:
        Statement -> Item_arena, current_statement -> current_arena
      sql/item_subselect.h:
        Item_subselect does not need to save thd->current_statement.
      sql/item_sum.cc:
        Statement -> Item_arena
      sql/item_sum.h:
        Statement -> Item_arena
      sql/mysql_priv.h:
        Statement -> Item_arena
      sql/sql_base.cc:
        current_statement -> current_arena
      sql/sql_class.cc:
        - Item_arena
        - convenient set_n_backup_statement, restore_backup_statement
        (nice idea, Sanja)
      sql/sql_class.h:
        - Item_arena: backport from 5.0
        - allocate_temporary_pool_for_ps_preparing,
          free_temporary_pool_for_ps_preparing removed.
      sql/sql_derived.cc:
        current_statement -> current_arena
      sql/sql_lex.cc:
        current_statement -> current_arena
      sql/sql_parse.cc:
        Deploy invariant that thd->free_list never contains junk items
        (backport from 5.0).
      sql/sql_prepare.cc:
        - backporting Item_arena
        - no need to allocate_temporary_pool_for_ps_preparing().
      sql/sql_select.cc:
        Fix for bug#4912 "mysqld crashs in case a statement is 
        executed a second time": if this is the first execute of
        a prepared statement, negation elimination is
        done in memory of the prepared statement.
      sql/sql_union.cc:
        Backporting Item_arena from 5.0.
      095b686c
    • unknown's avatar
      mysql-copyright: · ae99cc1f
      unknown authored
        Fixed it to work, added function to fix include/mysql_version.h LICENSE tag from GPL to Commercial
      
      
      Build-tools/mysql-copyright:
        Fixed it to work, added function to fix include/mysql_version.h LICENSE tag from GPL to Commercial
      ae99cc1f
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1 · a186bd51
      unknown authored
      into rurik.mysql.com:/home/igor/mysql-4.1
      
      
      sql/sql_select.cc:
        Auto merged
      a186bd51
    • unknown's avatar
      after merge fix · 0745a2b7
      unknown authored
      
      myisam/Makefile.am:
        put zlib at the end (libtool adds the whole bunch of dependencies right after that)
      sql/Makefile.am:
        put zlib at the end (libtool adds the whole bunch of dependencies right after that)
      0745a2b7
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1/ · 5f74f8d5
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      
      sql/mysql_priv.h:
        Auto merged
      5f74f8d5
    • unknown's avatar
      variable scoop, compile fix · c95b0115
      unknown authored
      c95b0115
    • unknown's avatar
      merged · adf4e7a8
      unknown authored
      
      sql/lock.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_db.cc:
        Auto merged
      adf4e7a8
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1 · 323e5203
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      
      323e5203
    • unknown's avatar
      Merge rburnett@bk-internal.mysql.com:/home/bk/mysql-4.1 · e73e4bea
      unknown authored
      into build.mysql.com:/users/rburnett/mysql-4.1
      
      
      sql/mysql_priv.h:
        Auto merged
      e73e4bea
    • unknown's avatar
      Merge rurik.mysql.com:/home/igor/mysql-4.1 · b9120c19
      unknown authored
      into rurik.mysql.com:/home/igor/dev/mysql-4.1-0
      
      
      sql/item_sum.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      b9120c19
    • unknown's avatar
      removed debug printout · 9159563d
      unknown authored
      9159563d
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1 · 220be53e
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      
      220be53e
    • unknown's avatar
      sql_select.cc: compilation failure fixed · 91df1608
      unknown authored
      
      
      sql/sql_select.cc:
        why cannot I compare (type) to (const type) ?????
      91df1608
    • unknown's avatar
      Bug#4594 "column index make = failed for gbk, but like works" · 8f68a9eb
      unknown authored
      Fix for MyISAM. Tests for MyISAM and HASH+BTREE.
      
      
      8f68a9eb
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/mysql-4.1-ndb · 5aad498c
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      
      5aad498c
    • unknown's avatar
      compile error fixes for some platforms · a6352443
      unknown authored
      a6352443
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · b11203f3
      unknown authored
      into brandersnatch.localdomain:/home/dlenev/src/mysql-4.1-bg4302
      
      
      b11203f3
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 80d924d9
      unknown authored
      into poseidon.(none):/home/tomas/mysql-4.1
      
      
      80d924d9
    • unknown's avatar
      fix compile error on some platforms · 25c2c2a7
      unknown authored
      25c2c2a7
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 764dd491
      unknown authored
      into brandersnatch.localdomain:/home/dlenev/src/mysql-4.1-bg4302
      
      
      sql/sql_select.cc:
        Auto merged
      764dd491
    • unknown's avatar
      Merge lgrimmer@build.mysql.com:/home/bk/mysql-4.1 · a9ea217c
      unknown authored
      into mysql.com:/space/my/mysql-4.1
      
      
      a9ea217c
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 03990ba4
      unknown authored
      into poseidon.(none):/home/tomas/mysql-4.1
      
      
      03990ba4
    • unknown's avatar
      small helptext fix · 18421a6c
      unknown authored
      18421a6c
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 · 4f0e2da3
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      
      4f0e2da3
    • unknown's avatar
      Making FLUSH TABLES WITH READ LOCK block COMMITs of existing transactions, · cd8054d4
      unknown authored
      in a deadlock-free manner. This splits locking the global read lock in two steps.
      This fixes a consequence of this bug, known as:
      BUG#4953 'mysqldump --master-data may report incorrect binlog position if using InnoDB'
      And a test.
      
      
      sql/handler.cc:
        making COMMIT wait if FLUSH TABLES WITH READ LOCK happened.
      sql/lock.cc:
        an additional stage so that FLUSH TABLES WITH READ LOCK blocks COMMIT:
        make_global_read_lock_block_commit():
        taking the global read lock is TWO steps (2nd step is optional; without
        it, COMMIT of existing transactions will be allowed):
        lock_global_read_lock() THEN make_global_read_lock_block_commit().
      sql/mysql_priv.h:
        new argument to wait_if_global_read_lock()
      sql/sql_class.h:
        THD::global_read_lock now an uint to reflect the 2 steps of global read lock (does not block COMMIT / does)
      sql/sql_db.cc:
        update for new prototype
      sql/sql_parse.cc:
        implementing the two steps of global read lock so that FLUSH TABLES WITH READ LOCK can block COMMIT without deadlocking with COMMITs.
      cd8054d4
    • unknown's avatar
      bug#5128 - remove need of unique fs-path · a4b30482
      unknown authored
      bug#4761 - more validation of hosts
      bug#4511 - only non depricated should be saved in config
               - fix ConfigInfo::BOOL w.r.t deprication
      
      
      mysql-test/ndb/ndb_config_2_node.ini:
        Removed need of unique filesystem
      mysql-test/ndb/ndbcluster.sh:
        Removed need of unique filesystem
        Add "" around variables for increased portability
      ndb/src/common/mgmcommon/ConfigInfo.cpp:
        Added checking of hostnames already in InitConfigFileParser
      ndb/src/common/mgmcommon/ConfigRetriever.cpp:
        Add checking of hostnames when retreiving configuration
      ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp:
        Added ndb_%u to filesystempath
      ndb/src/kernel/blocks/ndbfs/AsyncFile.hpp:
        Added ndb_%u to filesystempath
      ndb/src/kernel/blocks/ndbfs/Filename.cpp:
        Added ndb_%u to filesystempath
      ndb/src/kernel/blocks/ndbfs/Filename.hpp:
        Added ndb_%u to filesystempath
      ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp:
        Added ndb_%u to filesystempath
      a4b30482
    • unknown's avatar
      Fix for bug#4302 "ambiguos order by when renamed column is identical to another in result" · f9c3cb5f
      unknown authored
      When in find_item_in_list() we are looking for item we should take into account unaliased 
      names of the fields but only if item with such aliased name is not found.
      Also we should ignore aliases when looking for fully specified field.
      
      
      mysql-test/r/order_by.result:
        Fixed wrong (non-standard) test results
        Added test case for bug #4302
        Added tests for other ambiguos and potentially ambigous cases in order by clause
      mysql-test/t/order_by.test:
        Fixed wrong (non-standard) test results
        Added test case for bug #4302
        Added tests for other ambiguos and potentially ambigous cases in order by clause
      sql/sql_select.cc:
        We should ignore only not_found_item errors when searching for item in find_order_in_list() 
        to be able to catch ambiguities.
      f9c3cb5f
    • unknown's avatar
      - do not link statically on our IA64 and AMD64 build hosts, as · 1c90c388
      unknown authored
         static linking against an unpatched glibc 2.3 is causing trouble
       - add "glibc23" to the release suffix in this case
       - re-ordered the Changelog that was messed up by a BK merge
         (RPM is picky about this)
      
      
      1c90c388
    • unknown's avatar
      Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-4.1 · 32535514
      unknown authored
      into mysql.com:/Users/mikron/mysql-4.1
      
      
      32535514