1. 13 Dec, 2007 3 commits
    • unknown's avatar
      Merge mhansson@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 03c11d1b
      unknown authored
      into  dl145s.mysql.com:/data0/mhansson/my51-bug32858
      
      
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      03c11d1b
    • unknown's avatar
      Merge linux-st28.site:/home/martin/mysql/src/bug32858/my50-bug32858 · 39e88d59
      unknown authored
      into  linux-st28.site:/home/martin/mysql/src/bug32858/my51-bug32858
      
      
      mysql-test/r/union.result:
        null merge
      mysql-test/t/union.test:
        null merge.
      sql/sql_class.cc:
        null merge.
      sql/sql_class.h:
        null merge.
      sql/sql_yacc.yy:
        null merge.
      39e88d59
    • unknown's avatar
      Bug #32858: Erro: "Incorrect usage of UNION and INTO" does not take · e1df0fbc
      unknown authored
      subselects into account
      
      It is forbidden to use the SELECT INTO construction inside UNION statements
      unless on the last SELECT of the union. The parser records whether it 
      has seen INTO or not when parsing a UNION statement. But if the INTO was
      legally used in an outer query, an error is thrown if UNION is seen in a
      subquery. Fixed in 5.0 by remembering the nesting level of INTO tokens and 
      mitigate the error unless it collides with the UNION.
      
      
      mysql-test/r/union.result:
        Bug#32858: Test result
      mysql-test/t/union.test:
        Bug#32858: Test case
      sql/sql_class.cc:
        Bug#32858: Initializing new member
      sql/sql_class.h:
        Bug#32858: Added property nest_level to select_result class.
      sql/sql_yacc.yy:
        Bug#32858: The fix.
      e1df0fbc
  2. 10 Dec, 2007 2 commits
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · ea1f7a6e
      unknown authored
      into  mysql.com:/misc/mysql/31177/51-31177
      
      
      tests/mysql_client_test.c:
        Auto merged
      ea1f7a6e
    • unknown's avatar
      Bug #31177: Server variables can't be set to their current values · 82162aa5
      unknown authored
      fixes for SLES10
      
      
      mysql-test/r/change_user.result:
        It's unsigned.
      mysys/my_getopt.c:
        Failsafe no longer needed, we handle signedness correctly now.
      sql/set_var.cc:
        ha_rows can be derived from all kinds of types, but
        they're all unsigned. Display it as such.
      tests/mysql_client_test.c:
        cannot easily check this here due to types.
        check with Alik whether we need this on top
        of change_user.test.
      82162aa5
  3. 08 Dec, 2007 3 commits
    • unknown's avatar
      BUG#32694 post-merge adjustment of EXPLAIN results for 5.1. · 3b217ed9
      unknown authored
      
      BitKeeper/etc/ignore:
        Added ylwrap to the ignore list
      3b217ed9
    • unknown's avatar
      Merge lapi.mysql.com:/home/tkatchaounov/mysql/src/5.0#32694 · 1e497aa6
      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.
      1e497aa6
    • unknown's avatar
      Fix for BUG#32694 "NOT NULL table field in a subquery produces invalid results" · b5640b1f
      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.
      b5640b1f
  4. 07 Dec, 2007 6 commits
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · eed283e4
      unknown authored
      into  moonbone.local:/work/32482-5.1-opt-mysql
      
      
      sql/item_func.cc:
        Auto merged
      eed283e4
    • unknown's avatar
      Bug#32482: Crash for a query with ORDER BY a user variable. · 8cf86d4a
      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.
      8cf86d4a
    • unknown's avatar
      Merge macbook.gmz:/Users/kgeorge/mysql/work/mysql-5.0-opt · b8cf0b42
      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
      b8cf0b42
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-5.1-opt · d3fbab6f
      unknown authored
      into  mysql.com:/home/hf/work/26921/my51-26921
      
      d3fbab6f
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-5.1-opt · 50cca2a7
      unknown authored
      into  mysql.com:/home/hf/work/26921/my51-26921
      
      
      libmysqld/lib_sql.cc:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      50cca2a7
    • unknown's avatar
      Merge mysql.com:/home/hf/work/26921/my50-26921 · 24534a5f
      unknown authored
      into  mysql.com:/home/hf/work/26921/my51-26921
      
      
      libmysqld/lib_sql.cc:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      24534a5f
  5. 06 Dec, 2007 9 commits
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 458dff65
      unknown authored
      into  mysql.com:/home/hf/work/mrg/my51-mrg
      
      458dff65
    • unknown's avatar
      partition_archive tests added · 50f44522
      unknown authored
      
      mysql-test/r/partition_archive.result:
        test results
      mysql-test/t/partition_archive.test:
        tests added
      50f44522
    • unknown's avatar
      Bug#31177: Server variables can't be set to their current values · 1d3d3893
      unknown authored
      initialise limits properly for getopt_ll_limit()
      (fixes falcon_opt test)
      
      
      sql/sql_plugin.cc:
        initialise limits properly for getopt_ll_limit()
      1d3d3893
    • unknown's avatar
      Merge mysql.com:/home/hf/work/32247/my51-32247 · 73724acb
      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
      73724acb
    • unknown's avatar
      Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table). · b57893c9
      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
      b57893c9
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 631b58d8
      unknown authored
      into  mysql.com:/misc/mysql/31177/51-31177
      
      631b58d8
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · d9acf406
      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
      d9acf406
    • unknown's avatar
      Merge mysql.com:/misc/mysql/31177/50-31177 · a65665af
      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.
      a65665af
    • unknown's avatar
      Bug#31177: Server variables can't be set to their current values · 240f0f27
      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
      240f0f27
  6. 04 Dec, 2007 4 commits
    • unknown's avatar
      Merge mhansson@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · f671f07e
      unknown authored
      into  dl145s.mysql.com:/data0/mhansson/my51-bug30234
      
      f671f07e
    • unknown's avatar
      Merge mhansson@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · cb8a66d7
      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
      cb8a66d7
    • unknown's avatar
      test case fix · 739b8555
      unknown authored
      739b8555
    • unknown's avatar
      Bug#31177: Server variables can't be set to their current values · b2af1235
      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()
      b2af1235
  7. 03 Dec, 2007 5 commits
  8. 02 Dec, 2007 3 commits
    • unknown's avatar
      Bug#31177: Server variables can't be set to their current values · 522dee3c
      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.
      522dee3c
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · e617ba3f
      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
      e617ba3f
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 20e0b90a
      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
      20e0b90a
  9. 01 Dec, 2007 5 commits
    • unknown's avatar
      Bug#31177: Server variables can't be set to their current values · 549abb44
      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.
      549abb44
    • unknown's avatar
      Merge mysql.com:/misc/mysql/31177/50-31177 · ae789bd6
      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
      ae789bd6
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 31b601b8
      unknown authored
      into  mysql.com:/misc/mysql/32707/51-32707
      
      
      sql/protocol.cc:
        Auto merged
      31b601b8
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · f21d6568
      unknown authored
      into  mysql.com:/misc/mysql/32707/50-32707
      
      
      sql/protocol.cc:
        Auto merged
      f21d6568
    • unknown's avatar
      Merge mysql.com:/home/hf/work/mrg/my41-mrg · d29cb15d
      unknown authored
      into  mysql.com:/home/hf/work/mrg/my50-mrg
      
      d29cb15d