1. 08 Dec, 2007 2 commits
    • unknown's avatar
      Merge lapi.mysql.com:/home/tkatchaounov/mysql/src/5.0#32694 · b74535d7
      unknown authored
      into  lapi.mysql.com:/home/tkatchaounov/mysql/src/5.1#32694
      
      
      mysql-test/r/type_datetime.result:
        Auto merged
      mysql-test/t/type_datetime.test:
        Manual merge for BUG#32694.
      sql/item_cmpfunc.cc:
        Manual merge for BUG#32694.
      b74535d7
    • unknown's avatar
      Fix for BUG#32694 "NOT NULL table field in a subquery produces invalid results" · b3d8ff4e
      unknown authored
        
      The problem was that when convert_constant_item is called for subqueries,
      this happens when we already started executing the top-level query, and
      the field argument of convert_constant_item pointed to a valid table row.
      In turn convert_constant_item used the field buffer to compute the value
      of its item argument. This copied the item's value into the field,
      and made equalities with outer references always true.
        
      The fix saves/restores the original field's value when it belongs to an
      outer table.
      
      
      mysql-test/r/type_datetime.result:
        Test for BUG#32694.
      mysql-test/t/type_datetime.test:
        Test for BUG#32694.
      sql/item_cmpfunc.cc:
        - Changed convert_constant_item() so that it doesn't destroy the contents
          of its field argument when the field originates from table in an outer
          query.
      b3d8ff4e
  2. 07 Dec, 2007 6 commits
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 790dae3e
      unknown authored
      into  moonbone.local:/work/32482-5.1-opt-mysql
      
      
      sql/item_func.cc:
        Auto merged
      790dae3e
    • unknown's avatar
      Bug#32482: Crash for a query with ORDER BY a user variable. · 0ad7fc58
      unknown authored
      The Item_func_set_user_var::register_field_in_read_map() did not check 
      that the result_field was null.This caused server crashes for queries that
      required order by such a field and were executed without using a temporary
      table.
      
      The Item_func_set_user_var::register_field_in_read_map() now checks the
      result_field to be not null.
      
      
      mysql-test/t/user_var.test:
        Added a test case for the bug#32482: Crash for a query with ORDER BY a user variable.
      mysql-test/r/user_var.result:
        Added a test case for the bug#32482: Crash for a query with ORDER BY a user variable.
      sql/item_func.cc:
        Bug#32482: Crash for a query with ORDER BY a user variable.
        The Item_func_set_user_var::register_field_in_read_map() now checks the
        result_field to be not null.
      0ad7fc58
    • unknown's avatar
      Merge macbook.gmz:/Users/kgeorge/mysql/work/mysql-5.0-opt · 1118001b
      unknown authored
      into  macbook.gmz:/Users/kgeorge/mysql/work/merge-5.1-opt
      
      
      BitKeeper/deleted/.del-ps_6bdb.result:
        Auto merged
      client/mysql.cc:
        Auto merged
      mysql-test/r/delete.result:
        Auto merged
      mysql-test/r/merge.result:
        Auto merged
      mysql-test/r/ps_2myisam.result:
        Auto merged
      mysql-test/r/ps_3innodb.result:
        Auto merged
      mysql-test/r/ps_4heap.result:
        Auto merged
      mysql-test/r/ps_5merge.result:
        Auto merged
      mysql-test/r/type_bit.result:
        Auto merged
      mysql-test/suite/ndb/r/ps_7ndb.result:
        Auto merged
      mysql-test/t/delete.test:
        Auto merged
      mysql-test/t/merge.test:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/opt_range.cc:
        Auto merged
      sql/protocol.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql-common/my_time.c:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      storage/myisam/ha_myisam.cc:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      mysql-test/r/myisam.result:
        merge 5.0-opt -> 5.1-opt
      mysql-test/r/subselect.result:
        merge 5.0-opt -> 5.1-opt
      mysql-test/t/myisam.test:
        merge 5.0-opt -> 5.1-opt
      mysql-test/t/subselect.test:
        merge 5.0-opt -> 5.1-opt
      1118001b
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-5.1-opt · 8ac2abbe
      unknown authored
      into  mysql.com:/home/hf/work/26921/my51-26921
      
      
      8ac2abbe
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-5.1-opt · 54d5afd3
      unknown authored
      into  mysql.com:/home/hf/work/26921/my51-26921
      
      
      libmysqld/lib_sql.cc:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      54d5afd3
    • unknown's avatar
      Merge mysql.com:/home/hf/work/26921/my50-26921 · 1dd429fd
      unknown authored
      into  mysql.com:/home/hf/work/26921/my51-26921
      
      
      libmysqld/lib_sql.cc:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      1dd429fd
  3. 06 Dec, 2007 9 commits
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 369402f5
      unknown authored
      into  mysql.com:/home/hf/work/mrg/my51-mrg
      
      
      369402f5
    • unknown's avatar
      partition_archive tests added · d7a2e005
      unknown authored
      
      mysql-test/r/partition_archive.result:
        test results
      mysql-test/t/partition_archive.test:
        tests added
      d7a2e005
    • unknown's avatar
      Bug#31177: Server variables can't be set to their current values · 85eed9de
      unknown authored
      initialise limits properly for getopt_ll_limit()
      (fixes falcon_opt test)
      
      
      sql/sql_plugin.cc:
        initialise limits properly for getopt_ll_limit()
      85eed9de
    • unknown's avatar
      Merge mysql.com:/home/hf/work/32247/my51-32247 · 4cb78413
      unknown authored
      into  mysql.com:/home/hf/work/mrg/my51-mrg
      
      
      mysql-test/r/partition.result:
        merging
      mysql-test/t/partition.test:
        merging
      sql/ha_partition.cc:
        SCCS merged
      4cb78413
    • unknown's avatar
      Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table). · b6c0c175
      unknown authored
      ha_partition::update_create_info() just calls update_create_info
      of a first partition, so only get the autoincrement maximum
      of the first partition, so SHOW CREATE TABLE can show
      small AUTO_INCREMENT parameters.
      Fixed by implementing ha_partition::update_create_info() in a way
      other handlers work.
      HA_ARCHIVE:stats.auto_increment handling made consistent with other engines
      
      
      mysql-test/r/archive.result:
        Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table).
        
        test result fixed
      mysql-test/r/partition.result:
        Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table).
        
        test result
      mysql-test/suite/rpl/r/rpl_innodb_bug28430.result:
        Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table).
        
        test result fixed
      mysql-test/t/partition.test:
        Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table).
        
        test added as rpl_innodb_bug28430 is INNOBASE specific while
        the bug is not
      sql/ha_partition.cc:
        Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table).
        
        ha_partition::update_create_info() implemented
      storage/archive/ha_archive.cc:
        Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table).
        
        ha_archive.stats.auto_increment now contains next (not last used) value
        of auto_increment to be consistent with other engines
      b6c0c175
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · f448c625
      unknown authored
      into  mysql.com:/misc/mysql/31177/51-31177
      
      
      f448c625
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · bfe58b71
      unknown authored
      into  mysql.com:/misc/mysql/31177/50-31177
      
      
      mysql-test/r/ps_2myisam.result:
        Auto merged
      mysql-test/r/ps_3innodb.result:
        Auto merged
      mysql-test/r/ps_4heap.result:
        Auto merged
      mysql-test/r/ps_5merge.result:
        Auto merged
      mysql-test/r/ps_6bdb.result:
        Auto merged
      mysql-test/r/ps_7ndb.result:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      bfe58b71
    • unknown's avatar
      Merge mysql.com:/misc/mysql/31177/50-31177 · 55dea2fc
      unknown authored
      into  mysql.com:/misc/mysql/31177/51-31177
      
      
      BitKeeper/deleted/.del-ps_6bdb.result:
        Auto merged
      mysys/my_getopt.c:
        Auto merged
      mysql-test/r/ps_2myisam.result:
        manual merge
      mysql-test/r/ps_3innodb.result:
        manual merge
      mysql-test/r/ps_4heap.result:
        manual merge
      mysql-test/r/ps_5merge.result:
        manual merge
      mysql-test/suite/ndb/r/ps_7ndb.result:
        manual merge
      mysql-test/t/variables.test:
        manual merge
      sql/mysqld.cc:
        NULL
      sql/item_func.cc:
        Signedness is already propagated properly for user-vars in 5.1.
      sql/set_var.cc:
        add correct handling of signedness when assigning 64-bit
        values to sysvars.
      sql/set_var.h:
        cleanliness.
      55dea2fc
    • unknown's avatar
      Bug#31177: Server variables can't be set to their current values · 4618d68d
      unknown authored
      additional fixes for BDB and correct assignment of both signed
      and unsigned 64-bit data to unsigned system variables
      
      
      mysql-test/r/ps_2myisam.result:
        account for UNSIGNED_FLAG
      mysql-test/r/ps_3innodb.result:
        account for UNSIGNED_FLAG
      mysql-test/r/ps_4heap.result:
        account for UNSIGNED_FLAG
      mysql-test/r/ps_5merge.result:
        account for UNSIGNED_FLAG
      mysql-test/r/ps_6bdb.result:
        account for UNSIGNED_FLAG
      mysql-test/r/ps_7ndb.result:
        account for UNSIGNED_FLAG
      mysys/my_getopt.c:
        We have correct signed/unsigned information now, so we no longer
        need to err on the side of caution.
      sql/item_func.cc:
        Copy unsigned info over from entry so the item's data
        correctly describe it.
      sql/mysqld.cc:
        BDB log buffer size: default can't be less than minimum
      sql/set_var.cc:
        Handle signedness of in-values correctly when assigning to
        unsigned types, all the way up to 64-bit. Use handler from
        all three unsigned sysvar types.
      sql/set_var.h:
        thd_ulonglong: Override default check with one for unsigned types
      4618d68d
  4. 04 Dec, 2007 4 commits
    • unknown's avatar
      Merge mhansson@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 3d91b3ac
      unknown authored
      into  dl145s.mysql.com:/data0/mhansson/my51-bug30234
      
      
      3d91b3ac
    • unknown's avatar
      Merge mhansson@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 0f9d3835
      unknown authored
      into  dl145s.mysql.com:/data0/mhansson/my50-bug30234
      
      
      sql/sql_yacc.yy:
        Auto merged
      mysql-test/r/delete.result:
        SCCS merged
      mysql-test/t/delete.test:
        SCCS merged
      0f9d3835
    • unknown's avatar
      test case fix · 7d89be3f
      unknown authored
      7d89be3f
    • unknown's avatar
      Bug#31177: Server variables can't be set to their current values · 09bf5b91
      unknown authored
      additional fixes for 64-bit
      ---
      Merge mysql.com:/misc/mysql/31177/50-31177
      into  mysql.com:/misc/mysql/31177/51-31177
      ---
      Bug#31177: Server variables can't be set to their current values
      
      additional 5.1 fixes (for plugins)
      
      
      mysql-test/t/variables.test:
        replace 32-bit and 64-bit values
        ---
        manual merge
      mysys/my_getopt.c:
        'mod' no longer used.
        on 64-bit, limit to (signed) (LONG)LONG_MAX to prevent badness
        in classes using longlong.
      sql/sql_plugin.cc:
        handle signedness in plugin-vars so we won't hit an assert()
        in getopt_*_limit_value()
      09bf5b91
  5. 03 Dec, 2007 5 commits
  6. 02 Dec, 2007 3 commits
    • unknown's avatar
      Bug#31177: Server variables can't be set to their current values · d892e682
      unknown authored
      extra 5.1 fixes
      
      
      mysql-test/t/order_fill_sortbuf-master.opt:
        If we set the variable below minimum, we'll get a warning
        at start-up that we don't want in the tests.
      d892e682
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 70cb41a2
      unknown authored
      into  mysql.com:/misc/mysql/31177/51-31177
      
      
      client/mysql.cc:
        Auto merged
      mysql-test/r/index_merge_myisam.result:
        Auto merged
      mysql-test/r/innodb_mysql.result:
        Auto merged
      mysql-test/r/ps.result:
        Auto merged
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/r/type_bit.result:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_plugin.cc:
        Auto merged
      70cb41a2
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 6a72267d
      unknown authored
      into  mysql.com:/misc/mysql/31177/50-31177
      
      
      client/mysql.cc:
        Auto merged
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/r/type_bit.result:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      6a72267d
  7. 01 Dec, 2007 11 commits
    • unknown's avatar
      Bug#31177: Server variables can't be set to their current values · 58f10e55
      unknown authored
      5.1+ specific fixes (plugins etc.)
      
      
      include/my_getopt.h:
        make both ull and ll global
      mysql-test/r/index_merge_myisam.result:
        we throw warnings to the client, yea, verily
      mysql-test/r/innodb.result:
        we throw warnings to the client, yea, verily
      mysql-test/r/variables.result:
        we throw warnings to the client, yea, verily
      mysql-test/t/variables.test:
        correct result, is multiple of variable's block_size now
      mysys/my_getopt.c:
        export getopt_ll_limit_value(), check for integer wrap-around
        in it, same as in ull variant.  Only print warnings to reporter
        when caller didn't ask for diagnostics, otherwise assume caller
        will handle any warnings (id est, throw them client-wards)
      sql/mysqld.cc:
        correct signedness of "concurrent-insert"
      sql/sql_plugin.cc:
        Throw sys-var out-of-range warnings client-wards for
        plugins, too.
      58f10e55
    • unknown's avatar
      Merge mysql.com:/misc/mysql/31177/50-31177 · 54ad7d88
      unknown authored
      into  mysql.com:/misc/mysql/31177/51-31177
      
      
      include/m_string.h:
        Auto merged
      include/my_getopt.h:
        Auto merged
      mysql-test/r/delayed.result:
        Auto merged
      mysql-test/r/innodb.result:
        Auto merged
      mysql-test/r/innodb_mysql.result:
        Auto merged
      mysql-test/r/key_cache.result:
        Auto merged
      mysql-test/r/ps.result:
        Auto merged
      mysql-test/r/type_bit.result:
        Auto merged
      mysql-test/r/type_bit_innodb.result:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      BitKeeper/deleted/.del-index_merge.result:
        Auto merged
      sql/set_var.cc:
        Auto merged
      mysql-test/r/variables.result:
        manual merge
      client/mysql.cc:
        manual merge
      client/mysqltest.c:
        manual merge
      mysql-test/r/subselect.result:
        manual merge
      mysys/my_getopt.c:
        manual merge
      sql/mysqld.cc:
        manual merge
      54ad7d88
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 25886c06
      unknown authored
      into  mysql.com:/misc/mysql/32707/51-32707
      
      
      sql/protocol.cc:
        Auto merged
      25886c06
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · e2680439
      unknown authored
      into  mysql.com:/misc/mysql/32707/50-32707
      
      
      sql/protocol.cc:
        Auto merged
      e2680439
    • unknown's avatar
      Merge mysql.com:/home/hf/work/mrg/my41-mrg · e75c58cf
      unknown authored
      into  mysql.com:/home/hf/work/mrg/my50-mrg
      
      
      e75c58cf
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-5.1-opt · 4e897766
      unknown authored
      into  mysql.com:/home/hf/work/mrg/my51-mrg
      
      
      4e897766
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-5.0-opt · 0baec33f
      unknown authored
      into  mysql.com:/home/hf/work/mrg/my50-mrg
      
      
      tests/mysql_client_test.c:
        Auto merged
      0baec33f
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-4.1-opt · d4a9a422
      unknown authored
      into  mysql.com:/home/hf/work/mrg/my41-mrg
      
      
      d4a9a422
    • unknown's avatar
      merging · 2850d7bd
      unknown authored
      2850d7bd
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 9b1665b1
      unknown authored
      into  mysql.com:/misc/mysql/32180/51-32180
      
      
      9b1665b1
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 75e6a71b
      unknown authored
      into  mysql.com:/misc/mysql/32180/50-32180
      
      
      75e6a71b