1. 24 Jan, 2007 6 commits
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.1 · d663a343
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      BitKeeper/etc/ignore:
        auto-union
      mysql-test/r/func_in.result:
        Auto merged
      mysql-test/r/range.result:
        Auto merged
      mysql-test/r/sp-code.result:
        Auto merged
      mysql-test/r/trigger.result:
        Auto merged
      mysql-test/r/udf.result:
        Auto merged
      mysql-test/t/func_in.test:
        Auto merged
      mysql-test/t/range.test:
        Auto merged
      mysql-test/t/trigger.test:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      mysql-test/r/select.result:
        manual merge
      mysql-test/r/view.result:
        manual merge
      mysql-test/t/select.test:
        manual merge
      mysql-test/t/view.test:
        manual merge
      d663a343
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-opt · 19ce8656
      unknown authored
      into  macbook.gmz:/Users/kgeorge/mysql/work/merge-5.1-opt
      
      
      mysql-test/r/view.result:
        Auto merged
      mysql-test/t/view.test:
        Auto merged
      sql/item_func.cc:
        Auto merged
      19ce8656
    • unknown's avatar
      merge of 5.0-opt -> 5.1-opt · 6098f770
      unknown authored
      6098f770
    • unknown's avatar
      bug #22682 Test fails --without-geometry · f469aa00
      unknown authored
      geometry dependent parts moved to proper .test files
      
      
      mysql-test/r/gis.result:
        result fixed
      mysql-test/r/innodb.result:
        result fixed
      mysql-test/r/innodb_gis.result:
        result fixed
      mysql-test/r/view.result:
        result fixed
      mysql-test/t/gis.test:
        HAVE_GEOMETRY dependent part moved here from view.test
      mysql-test/t/innodb.test:
        HAVE_GEOMETRY dependent part moved to innodb_gis.test
      BitKeeper/etc/ignore:
        Added libmysqld/sql_servers.cc to the ignore list
      mysql-test/t/innodb_gis.test:
        HAVE_GEOMETRY dependent part moved here from innodb.test
      mysql-test/t/view.test:
        HAVE_GEOMETRY dependent part moved to gis.test
      f469aa00
    • unknown's avatar
      Merge willster.(none):/home/stewart/Documents/MySQL/5.0/ndb-work · 1b71102f
      unknown authored
      into  willster.(none):/home/stewart/Documents/MySQL/5.1/ndb-work
      
      
      storage/ndb/src/common/util/SocketClient.cpp:
        Auto merged
      1b71102f
    • unknown's avatar
      fix hpux build problem and some ndb connect errors being missed · 71f60680
      unknown authored
      
      ndb/src/common/util/SocketClient.cpp:
        fix two problems recently introduced:
        - HPUX build problem
        - some connect errors not being detected properly
      71f60680
  2. 23 Jan, 2007 18 commits
    • unknown's avatar
      Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 72ae6eab
      unknown authored
      into  rakia.gmz:/home/kgeorge/mysql/autopush/B6172-5.1-opt
      
      
      72ae6eab
    • unknown's avatar
      Bug #6172: RAND(a) should only accept constant values as arguments · d74a7b9d
      unknown authored
       RAND() must accept scalar expressions regardless of their kind.
       That includes both constant expressions and expressions that 
       depend on column values.
       When the expression is constant the random seed can be initialized
       at compile time.
       However when the expression is not constant the random seed must be
       initialized at each invocation (while it still can be allocated at
       compile time).
       Implemented the above rules by extending Item_func_rand::val_real()
       to initialize the random seed at the correct place.
      
      
      mysql-test/r/func_math.result:
        Bug #6172: RAND(a) should only accept constant values as arguments
         - extened the test case
      mysql-test/t/func_math.test:
        Bug #6172: RAND(a) should only accept constant values as arguments
         - extened the test case
      sql/item_func.cc:
        Bug #6172: RAND(a) should only accept constant values as arguments
         - allow specifying non-const expressions as RAND() arguments
      sql/item_func.h:
        Bug #6172: RAND(a) should only accept constant values as arguments
         - allow specifying non-const expressions as RAND() arguments
      d74a7b9d
    • unknown's avatar
      Merge pnousiainen@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb · 964f502c
      unknown authored
      into  clam.ndb.mysql.com:/export/space/pekka/ndb/version/my50-ndb
      
      
      964f502c
    • unknown's avatar
      Merge pnousiainen@bk-internal.mysql.com:/home/bk/mysql-5.1-ndb · f80084bf
      unknown authored
      into  clam.ndb.mysql.com:/export/space/pekka/ndb/version/my51-ndb
      
      
      f80084bf
    • unknown's avatar
      Merge willster.(none):/home/stewart/Documents/MySQL/5.0/ndb · a7174850
      unknown authored
      into  willster.(none):/home/stewart/Documents/MySQL/5.0/bug25487
      
      
      a7174850
    • unknown's avatar
      Merge willster.(none):/home/stewart/Documents/MySQL/5.1/ndb · b9077693
      unknown authored
      into  willster.(none):/home/stewart/Documents/MySQL/5.1/bug25567
      
      
      mysql-test/r/ndb_basic.result:
        Auto merged
      b9077693
    • unknown's avatar
      Merge willster.(none):/home/stewart/Documents/MySQL/5.0/bug25487 · a36dffb1
      unknown authored
      into  willster.(none):/home/stewart/Documents/MySQL/5.1/bug25567
      
      
      storage/ndb/include/mgmapi/mgmapi.h:
        Auto merged
      storage/ndb/include/util/SocketClient.hpp:
        Auto merged
      storage/ndb/src/common/transporter/Transporter.cpp:
        Auto merged
      storage/ndb/src/common/util/SocketClient.cpp:
        Auto merged
      storage/ndb/src/mgmapi/mgmapi.cpp:
        Auto merged
      a36dffb1
    • unknown's avatar
      Bug#25567 records() call performs scan in NDB, performance bug · 8b54310b
      unknown authored
      
      mysql-test/r/ndb_basic.result:
        from spaces, to tabs. what fun!
      sql/ha_ndbcluster.h:
        fix estimate_rows_upper_bound() to be correct for NDB
      sql/sql_select.cc:
        use non-exact records information
      8b54310b
    • unknown's avatar
      Merge clam.ndb.mysql.com:/export/space/pekka/ndb/version/my50-ndb · 29a9f743
      unknown authored
      into  clam.ndb.mysql.com:/export/space/pekka/ndb/version/my51-ndb
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      29a9f743
    • unknown's avatar
      ndb - bug#25562 use byte-size max_data_length() when setting blob part size · 25fb32ef
      unknown authored
      
      sql/ha_ndbcluster.cc:
        bug#25562 use byte-size max_data_length() when setting blob part size
      25fb32ef
    • unknown's avatar
      Merge macbook.gmz:/Users/kgeorge/mysql/work/mysql-5.0-opt · 276f0d4c
      unknown authored
      into  macbook.gmz:/Users/kgeorge/mysql/work/merge-5.1-opt
      
      
      mysql-test/r/func_in.result:
        Auto merged
      mysql-test/r/range.result:
        Auto merged
      mysql-test/r/select.result:
        Auto merged
      mysql-test/r/sp-code.result:
        Auto merged
      mysql-test/r/trigger.result:
        Auto merged
      mysql-test/r/udf.result:
        Auto merged
      mysql-test/r/view.result:
        Auto merged
      mysql-test/t/func_in.test:
        Auto merged
      mysql-test/t/func_str.test:
        Auto merged
      mysql-test/t/range.test:
        Auto merged
      mysql-test/t/select.test:
        Auto merged
      mysql-test/t/trigger.test:
        Auto merged
      mysql-test/t/udf.test:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/opt_range.h:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_delete.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_union.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      mysql-test/r/func_str.result:
        merge 5.0-opt -> 5.1-opt
      mysql-test/r/group_by.result:
        merge 5.0-opt -> 5.1-opt
      mysql-test/r/insert.result:
        merge 5.0-opt -> 5.1-opt
      mysql-test/r/subselect.result:
        merge 5.0-opt -> 5.1-opt
      mysql-test/t/group_by.test:
        merge 5.0-opt -> 5.1-opt
      mysql-test/t/insert.test:
        merge 5.0-opt -> 5.1-opt
      mysql-test/t/subselect.test:
        merge 5.0-opt -> 5.1-opt
      mysql-test/t/view.test:
        merge 5.0-opt -> 5.1-opt
      sql/item_cmpfunc.h:
        merge 5.0-opt -> 5.1-opt
      sql/item_strfunc.h:
        merge 5.0-opt -> 5.1-opt
      276f0d4c
    • unknown's avatar
      round up Transporter connect timeout · 68ab0996
      unknown authored
      
      ndb/src/common/transporter/Transporter.cpp:
        change so timeout is rounded up to nearest second
      68ab0996
    • unknown's avatar
      Bug #25487 deleting ndb_cluster_connection object takes long time · 8deeb2f9
      unknown authored
        
        aim is to:
        a) if set_connect_timeout called, timeout connect attempt (for retry on
        next call) after timeout period
        b) preserve existing blocking behaviour otherwise (for, e.g. mgmapi)
        
        Related to customer issue with long time deleting ndb_cluster_connection
        object. believe we're hanging on the connect(2) call until timeout (when
        we then realise we should exit the thread).
      
      
      ndb/include/mgmapi/mgmapi.h:
        add ndb_mgm_set_connect_timeout
      ndb/include/util/SocketClient.hpp:
        add timeout (seconds) for max time to wait for connection
      ndb/src/common/transporter/Transporter.cpp:
        set limit on amount of time we'll wait for tcp connect
      ndb/src/common/util/SocketClient.cpp:
        only try to connect for a maximum of timeout time
      ndb/src/mgmapi/mgmapi.cpp:
        add ndb_mgm_set_connect_timeout
      8deeb2f9
    • unknown's avatar
      Merge poseidon.mysql.com:/home/tomas/mysql-5.0-ndb · ea9eb022
      unknown authored
      into  poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      storage/ndb/src/mgmsrv/MgmtSrvr.cpp:
        Auto merged
      storage/ndb/src/ndbapi/ClusterMgr.cpp:
        Auto merged
      storage/ndb/src/ndbapi/ClusterMgr.hpp:
        Auto merged
      storage/ndb/src/ndbapi/SignalSender.cpp:
        Auto merged
      ea9eb022
    • unknown's avatar
      ndb - bug#22013 · ab8355fa
      unknown authored
          Fix bug in event handling wrt early node shutdown
      
      
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        Fix bug in event handling wrt early node shutdown
      ndb/src/ndbapi/ClusterMgr.cpp:
        Fix reportNodeFailed if only connected wo/ having received any API_REGCONF
      ndb/src/ndbapi/ClusterMgr.hpp:
        Fix reportNodeFailed if only connected wo/ having received any API_REGCONF
      ndb/src/ndbapi/SignalSender.cpp:
        Fix memleak
      ab8355fa
    • unknown's avatar
      correct manual merge · e7b4e509
      unknown authored
      e7b4e509
    • unknown's avatar
      Merge poseidon.mysql.com:/home/tomas/mysql-5.0-ndb · 8f9198ca
      unknown authored
      into  poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      storage/ndb/include/kernel/signaldata/DumpStateOrd.hpp:
        Auto merged
      storage/ndb/include/portlib/NdbMem.h:
        Auto merged
      storage/ndb/src/common/debugger/EventLogger.cpp:
        Auto merged
      storage/ndb/src/common/portlib/NdbMem.c:
        Auto merged
      storage/ndb/src/common/util/ConfigValues.cpp:
        Auto merged
      storage/ndb/src/common/util/File.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/qmgr/Qmgr.hpp:
        Auto merged
      storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        Auto merged
      storage/ndb/src/kernel/vm/Configuration.cpp:
        Auto merged
      storage/ndb/src/kernel/vm/Configuration.hpp:
        Auto merged
      storage/ndb/src/mgmsrv/ConfigInfo.cpp:
        Auto merged
      storage/ndb/test/ndbapi/testNodeRestart.cpp:
        Auto merged
      storage/ndb/test/run-test/daily-basic-tests.txt:
        Auto merged
      mysql-test/r/ndb_basic.result:
        manual merge
      mysql-test/t/ndb_basic.test:
        manual merge
      storage/ndb/src/ndbapi/ndberror.c:
        manual merge
      8f9198ca
    • unknown's avatar
      bug#25746 ndb: 4209 error with 2 VARCHAR primary keys · 188899cd
      unknown authored
      - post review changes
      
      
      188899cd
  3. 22 Jan, 2007 12 commits
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/mysql-5.1 · 0add38d8
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      
      sql/mysqld.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      0add38d8
    • unknown's avatar
      sql_select.cc: · 6447a7b6
      unknown authored
        Code cleanup after fix for bug#23417.
      
      
      sql/sql_select.cc:
        Code cleanup after fix for bug#23417.
      6447a7b6
    • unknown's avatar
      sql_prepare.cc: · 9e3b03f4
      unknown authored
        Post fix for bug#25123.
      
      
      sql/sql_prepare.cc:
        Post fix for bug#25123.
      9e3b03f4
    • unknown's avatar
      bug#25746 ndb: 4209 error with 2 VARCHAR primary keys · 5f9e20de
      unknown authored
      - make sure keys are copied correctly when varchar has 2 length bytes
      - test case
      
      
      mysql-test/r/ndb_basic.result:
        bug#25746 ndb: 4209 error with 2 VARCHAR primary keys
        - test case
      mysql-test/t/ndb_basic.test:
        bug#25746 ndb: 4209 error with 2 VARCHAR primary keys
        - test case
      sql/ha_ndbcluster.cc:
        bug#25746 ndb: 4209 error with 2 VARCHAR primary keys
        - make sure keys are copied correctly when varchar has 2 length bytes
      5f9e20de
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/51-work · ea42c5a7
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      
      storage/ndb/src/kernel/blocks/suma/Suma.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/suma/Suma.hpp:
        Auto merged
      ea42c5a7
    • unknown's avatar
      ndb - bug#25755 · 734a3036
      unknown authored
        remove accidently left debug prinouts
      
      
      734a3036
    • unknown's avatar
      ndb - bug#25755 · d6ef8dd0
      unknown authored
        Make sure subscriber is removed from list when n_subscribers is decreased
      
      
      storage/ndb/src/kernel/blocks/suma/Suma.cpp:
        Make sure subscriber is removed from list when n_subscribers is decreased
      storage/ndb/src/kernel/blocks/suma/Suma.hpp:
        Make sure subscriber is removed from list when n_subscribers is decreased
      d6ef8dd0
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/51-work · 93c0d6d2
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
      
      
      storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        Auto merged
      93c0d6d2
    • unknown's avatar
      ndb - fix bug is NODE_VERSION_REP · 448edca9
      unknown authored
        Fix assertion in corner-case where signal isnt sent to any node
      
      
      storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
        Fix corner-case where signal isnt sent to any node
      448edca9
    • unknown's avatar
      Bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table. · df0a0896
      unknown authored
      When inserting into a join-based view the update fields from the ON DUPLICATE
      KEY UPDATE wasn't checked to be from the table being inserted into and were
      silently ignored.
      
      The new check_view_single_update() function is added to check that
      insert/update fields are being from the same single table of the view.
      
      
      sql/sql_insert.cc:
        Bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table.
        The new check_view_single_update() function is added to check that
        insert/update fields are being from the same single table of the view.
      mysql-test/r/insert.result:
        Added a test case for bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table.
      mysql-test/t/insert.test:
        Added a test case for bug#25123: ON DUPLICATE KEY clause allows fields not from the insert table.
      df0a0896
    • unknown's avatar
      Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 4b2c3ac4
      unknown authored
      into  rakia.gmz:/home/kgeorge/mysql/autopush/B16590-5.1-opt
      
      
      mysql-test/r/order_by.result:
        Auto merged
      mysql-test/t/order_by.test:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      4b2c3ac4
    • unknown's avatar
      BUG#16590: Optimized does not do right "const" table pre-read · 2c6e678d
      unknown authored
       st_table::const_key_parts member is used in determining if
       certain key has a prefix that is compared to constant(s) in
       the query predicates.
       If there's such prefix the index can be used to get the data
       from the remaining suffix columns in sorted order.
       However if a field is compared to another field from a "const"
       table the const_key_parts is not amended.
       This makes the optimizer unable to detect that the key can be 
       used for sorting and adds an extra filesort.
       Fixed by updating const_key_parts after reading in the "const"
       table.
      
      
      mysql-test/r/order_by.result:
        BUG#16590: Optimized does not do right "const" table pre-read
         - test case
      mysql-test/t/order_by.test:
        BUG#16590: Optimized does not do right "const" table pre-read
         - test case
      sql/sql_select.cc:
        BUG#16590: Optimized does not do right "const" table pre-read
         - fill up the const_key_parts structure
      2c6e678d
  4. 21 Jan, 2007 4 commits