1. 23 Sep, 2005 18 commits
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-4.1-4100 · 671e0853
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.0-5000
      
      
      myisam/mi_dbug.c:
        Auto merged
      myisam/mi_rkey.c:
        Auto merged
      myisam/mi_search.c:
        Auto merged
      myisam/myisamdef.h:
        Auto merged
      mysql-test/r/merge.result:
        Auto merged
      mysql-test/t/merge.test:
        Auto merged
      671e0853
    • unknown's avatar
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 17654a77
      unknown authored
      into  mysql.com:/home/dlenev/src/mysql-5.0-bg13407
      
      17654a77
    • unknown's avatar
      Merge osalerma@bk-internal.mysql.com:/home/bk/mysql-5.0 · e5a8cb25
      unknown authored
      into  127.(none):/home/osku/mysql/5.0/clean
      
      e5a8cb25
    • unknown's avatar
      Merge 127.(none):/home/osku/mysql/5.0/clean · bb4e92b7
      unknown authored
      into  127.(none):/home/osku/mysql/5.0/3443
      
      
      innobase/dict/dict0dict.c:
        Auto merged
      innobase/include/trx0trx.h:
        Auto merged
      sql/ha_innodb.cc:
        Auto merged
      mysql-test/r/innodb.result:
        Merge fixes.
      mysql-test/t/innodb.test:
        Merge fixes.
      bb4e92b7
    • unknown's avatar
      Fix bug #3443, better foreign key error messsages. · 3e7edb2b
      unknown authored
      
      innobase/dict/dict0dict.c:
        Add 'add_newline' parameter to dict_print_info_on_foreign_key_in_create_format.
      innobase/include/dict0dict.h:
        Add 'add_newline' parameter to dict_print_info_on_foreign_key_in_create_format.
      innobase/include/os0file.h:
        Add os_file_read_string.
      innobase/include/trx0trx.h:
        Add trx_set_detailed_error and trx_set_detailed_error_from_file functions
        and a detailed_error field to trx_struct.
      innobase/include/ut0mem.h:
        Add ut_strlcpy.
      innobase/os/os0file.c:
        Add os_file_read_string.
      innobase/row/row0ins.c:
        Add row_ins_set_detailed function and call it when needed.
        
        Adapt to changes in dict_print_info_on_foreign_key_in_create_format.
      innobase/trx/trx0trx.c:
        Add trx_set_detailed_error and trx_set_detailed_error_from_file.
        
        Clear trx->detailed_error in trx_create.
      innobase/ut/ut0mem.c:
        Add ut_strlcpy.
      mysql-test/r/innodb.result:
        Add new tests, adapt existing ones whose output was changed.
      mysql-test/t/innodb.test:
        Add new tests, adapt existing ones whose output was changed.
      sql/ha_innodb.cc:
        Add get_error_message.
        
        Clear trx->detailed_error in start_stmt and external_lock.
      sql/ha_innodb.h:
        Add get_error_message.
      sql/handler.cc:
        Add special case code in print_error for HA_ERR_ROW_IS_REFERENCED and
        HA_ERR_NO_REFERENCED_ROW.
        
        Change SETMSG to point to new error messages.
      sql/share/errmsg.txt:
        Add ER_ROW_IS_REFERENCED_2 and ER_NO_REFERENCED_ROW_2.
      3e7edb2b
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 0204f57d
      unknown authored
      into  mysql.com:/home/dlenev/src/mysql-5.0-bg13407
      
      
      sql/mysqld.cc:
        Auto merged
      0204f57d
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · da379e4b
      unknown authored
      into  mysql.com:/home/dlenev/src/mysql-5.0-rmuqf
      
      da379e4b
    • unknown's avatar
      Fixed race conditions in rpl_multi_update and rpl_multi_delete tests which · 8ff2411c
      unknown authored
      caused spurious test failures.
      
      
      mysql-test/t/rpl_multi_delete.test:
        Fixed race condition in test that caused spurious test failure.
        To have predictable result from statements which are run on slave we
        need to sync master and slave explicitly.
      mysql-test/t/rpl_multi_update.test:
        Fixed race condition in test that caused spurious test failure.
        To have predictable result from statements which are run on slave we
        need to sync master and slave explicitly.
      8ff2411c
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 3ffdca83
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0
      
      3ffdca83
    • unknown's avatar
      Merge from 4.1 to 5.0 · 34666c3b
      unknown authored
      
      mysql-test/r/loaddata.result:
        Add drop tablea after test case
      mysql-test/r/type_decimal.result:
        Update warnings
      mysql-test/r/union.result:
        Miss in merge
      mysql-test/t/loaddata.test:
        Add drop table after test case
      sql/opt_sum.cc:
        Add missing }
      sql/sql_load.cc:
        Manual merge
      34666c3b
    • unknown's avatar
      InnoDB: Minor fixes. · 1d07a1c5
      unknown authored
      
      innobase/include/trx0trx.h:
        Fix invalid comment.
      sql/ha_innodb.cc:
        Change some memory allocations to fail-on-error.
        
        Cast argument of my_free to gptr, not char*.
      1d07a1c5
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-4.0-4000 · 608307d6
      unknown authored
      into  mysql.com:/home/mydev/mysql-4.1-4100
      
      
      myisam/mi_dbug.c:
        Auto merged
      myisam/mi_rkey.c:
        Auto merged
      myisam/mi_search.c:
        Auto merged
      myisam/myisamdef.h:
        Auto merged
      myisammrg/myrg_rkey.c:
        Bug#9112 - Merge table with composite index producing invalid results with some queries
        Manual merge
      mysql-test/r/merge.result:
        Bug#9112 - Merge table with composite index producing invalid results with some queries
        Manual merge
      mysql-test/t/merge.test:
        Bug#9112 - Merge table with composite index producing invalid results with some queries
        Manual merge
      608307d6
    • unknown's avatar
      Merge 127.(none):/home/osku/mysql/5.0/clean · 9c2ce93a
      unknown authored
      into  127.(none):/home/osku/mysql/5.0/13315
      
      9c2ce93a
    • unknown's avatar
      InnoDB: Fix bug #13315, index columns having a maximum length of 767. · 2e34a089
      unknown authored
      
      innobase/data/data0data.c:
        Adapt to DICT_MAX_COL_PREFIX_LEN rename.
      innobase/dict/dict0dict.c:
        Adapt to DICT_MAX_COL_PREFIX_LEN rename.
      innobase/include/dict0mem.h:
        Rename DICT_MAX_COL_PREFIX_LEN to DICT_MAX_INDEX_COL_LEN.
      innobase/include/row0mysql.h:
        Add field_lengths parameter to row_create_index_for_mysql.
      innobase/rem/rem0rec.c:
        Adapt to DICT_MAX_COL_PREFIX_LEN rename.
      innobase/row/row0mysql.c:
        Add field_lengths parameter to row_create_index_for_mysql and use it to
        check for too long index columns.
      mysql-test/r/innodb.result:
        New tests.
      mysql-test/t/innodb.test:
        New tests.
      sql/ha_innodb.cc:
        Create temporary field_lengths buffer and pass it to
        row_create_index_for_mysql.
      2e34a089
    • unknown's avatar
      Bug#9112 - Merge table with composite index producing invalid results with some queries · 93c94c37
      unknown authored
      The problem was an ab-use of last_rkey_length.
      Formerly we saved the packed key length (of the search key)
      in this element. But in certain cases it got replaced by 
      the (packed) result key length.
      Now we use a new element of MI_INFO to save the packed key 
      length of the search key.
      
      
      myisam/mi_dbug.c:
        Bug#9112 - Merge table with composite index producing invalid results with some queries
        Fixed the recognition of NULL values in _mi_print_key().
      myisam/mi_rkey.c:
        Bug#9112 - Merge table with composite index producing invalid results with some queries
        Saved the packed key length in a new element of MI_INFO.
      myisam/mi_search.c:
        Bug#9112 - Merge table with composite index producing invalid results with some queries
        Added a comment and trace prints.
      myisam/myisamdef.h:
        Bug#9112 - Merge table with composite index producing invalid results with some queries
        Added a new element to store the packed key length
        for use by the MyISAMMRG engine.
      myisammrg/myrg_rkey.c:
        Bug#9112 - Merge table with composite index producing invalid results with some queries
        Changed to use the new element of MI_INFO to get at the
        packed key length.
      mysql-test/r/merge.result:
        Bug#9112 - Merge table with composite index producing invalid results with some queries
        The test result.
      mysql-test/t/merge.test:
        Bug#9112 - Merge table with composite index producing invalid results with some queries
        The test case.
      93c94c37
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1 · e739669c
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0
      
      
      client/mysqltest.c:
        Auto merged
      myisam/myisamchk.c:
        Auto merged
      mysql-test/t/func_group.test:
        Auto merged
      mysql-test/t/loaddata.test:
        Auto merged
      mysql-test/t/type_decimal.test:
        Auto merged
      mysql-test/t/union.test:
        Auto merged
      sql/item_sum.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      mysql-test/r/func_group.result:
        Manual merge
      mysql-test/r/loaddata.result:
        Manual merge
      mysql-test/r/type_decimal.result:
        Manual merge
      mysql-test/r/union.result:
        Manual merge
      sql/field_conv.cc:
        aborting fix for 7589
      sql/opt_sum.cc:
        Manual merge
      sql/sql_load.cc:
        Manual merge
      sql/sql_yacc.yy:
        Aborting fix for 11553
      e739669c
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 · dba69910
      unknown authored
      into  zim.(none):/home/brian/mysql/fix-5.0
      
      
      sql/handler.cc:
        Auto merged
      dba69910
  2. 22 Sep, 2005 22 commits
    • unknown's avatar
      This fixed bug 13369. Note, I dislike goto's as well. · fb16683e
      unknown authored
      The alias structure now is a bit more simple and just uses a pointer to replace with the currect name. The giant case statement should go away in the next patch.
      
      
      sql/handler.cc:
        Simplified the code, annd fixed build issue with engines not being compiled.
        I disliek the goto but Serg preferred it over the testing of aliases first :)
      sql/handler.h:
        Removed ht from alias structure.
      fb16683e
    • unknown's avatar
      Merge mysqldev@production.mysql.com:my/mysql-5.0-release · c4eee8bd
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-root
      
      
      BitKeeper/etc/ignore:
        auto-union
      include/my_sys.h:
        Auto merged
      mysql-test/r/information_schema.result:
        Auto merged
      mysql-test/t/ctype_ujis.test:
        Auto merged
      sql/ha_federated.cc:
        Auto merged
      sql/handler.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/log.cc:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      sql/sp_head.h:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      sql/table.cc:
        Auto merged
      c4eee8bd
    • unknown's avatar
      Bug #13384 mysqltest, no protocol when script contains only lines with eval · 9a0ee3bf
      unknown authored
      
      client/mysqltest.c:
        Set query_executed also for eval, that results in a query being executed and output is
        likely. Commited once again in 5.0
      9a0ee3bf
    • unknown's avatar
      Bug #13384 mysqltest, no protocol when script contains only lines with eval · 7d63ea33
      unknown authored
      
      client/mysqltest.c:
        Set query_executed also for eval, that results in a query being executed and output is likely.
      7d63ea33
    • unknown's avatar
      Fix for bug #13407 "Remote connecting crashes server" and couple of similar · 351d8e39
      unknown authored
      problems which were introduced during work on WL#2787 "Add view definer/owner
      to the view definition (.frm) to check privileges on used tables and stored
      routines when using a VIEW."
      
      In some cases it is better to use value from Security_context::host_or_ip
      instead of value from Security_context::host since the latter can be NULL
      in certain situations (When we can't resolve hostname or we have not done
      this yet).
      
      
      mysql-test/r/skip_name_resolve.result:
        Added test for bug #13407 "Remote connecting crashes server".
      mysql-test/t/skip_name_resolve.test:
        Added test for bug #13407 "Remote connecting crashes server".
      sql/item_strfunc.cc:
        Item_func_user::val_str():
          It is better to use value from Security_context::host_or_ip instead of
          value from Security_context::host in the result of USER() function since
          the latter can be NULL in certain situations (When we can't resolve hostname
          or we have not done this yet. Reverted back to old code).
      sql/mysqld.cc:
        handle_connections_shared_memory():
         THD::host member has moved to the Security_context class.
         New THD::security_ctx member points to active security context.
      sql/sql_show.cc:
        mysqld_list_processes():
          It is better to use value from Security_context::host_or_ip instead of
          value from Security_context::host in the processlist since the latter
          can be NULL in certain situations (When we can't resolve hostname or we
          have not done this yet. Reverted back to old code).
      351d8e39
    • unknown's avatar
      Fixes needed to build 5.0.13 on Windows: · b7ee1513
      unknown authored
      - reflect two "Makefile.am" changes in the respective "VC project" files,
      - correct a typo in a (normally) unused macro parameter.
      
      
      VC++Files/libmysqld/libmysqld.vcproj:
        Reflect a change done by Kostja in the Unix "libmysqld/Makefile.am":
        New file "sql/sql_cursor.cpp" replaces "sql/protocol_cursor.cpp".
      VC++Files/sql/mysqld.vcproj:
        Reflect a change done by Kostja in the Unix "sql/Makefile.am":
        New file "sql/sql_cursor.cpp" replaces "sql/protocol_cursor.cpp".
      sql/ha_federated.cc:
        Correct a typo (matters only if "SAFEMALLOC" is set).
      b7ee1513
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/bug13164/my50-bug13164 · b2f7c99d
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0
      
      b2f7c99d
    • unknown's avatar
      Bug #13164 yassl: "SSL connection error" on several platforms · bf7ce85e
      unknown authored
       - it's a requirement fo yaSSL that either /dev/urandom or /dev/random is available on the target system.
       - Added a fix that tries to open /dev/random if /dev/urandom is not available.
      
      
      extra/yassl/taocrypt/src/random.cpp:
        Try to open /dev/ranom if /dev/urandom is not available.
      bf7ce85e
    • unknown's avatar
      InnoDB: correct two misleading comments · 77d5b1a7
      unknown authored
      
      innobase/include/data0type.ic:
        Correct the comment of dtype_get_min_size()
      sql/ha_innodb.h:
        Correct the comment of innobase_set_cursor_view()
      77d5b1a7
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1 · e9da5a24
      unknown authored
      into  mysql.com:/usr/home/ram/work/4.1.b11553
      
      e9da5a24
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 17fa08d4
      unknown authored
      into  mysql.com:/usr/home/ram/work/5.0.b11553
      
      17fa08d4
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.1 · a1ed7ea9
      unknown authored
      into mysql.com:/home/gluh/MySQL/Merge/4.1
      
      a1ed7ea9
    • unknown's avatar
      Fix for bug#12053 LOAD DATA INFILE ignores NO_AUTO_VALUE_ON_ZERO setting · 347b6911
      unknown authored
        set auto_increment_field_not_null to true to preserve zero values
        for autoincrement fields during LOAD DATA execution if 
        NO_AUTO_VALUE_ON_ZERO sql mode is set
      
      
      mysql-test/r/loaddata.result:
        Fix for bug#12053 LOAD DATA INFILE ignores NO_AUTO_VALUE_ON_ZERO setting
          test case
      mysql-test/t/loaddata.test:
        Fix for bug#12053 LOAD DATA INFILE ignores NO_AUTO_VALUE_ON_ZERO setting
          test case
      347b6911
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/mysql-5.0 · f9b3443f
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.0-push
      
      f9b3443f
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/mysql-4.1 · dcd67271
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-4.1-push
      
      dcd67271
    • unknown's avatar
      Merge perch.ndb.mysql.com:/home/jonas/src/mysql-4.1 · 0db66e24
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.0
      
      
      mysql-test/r/ndb_alter_table.result:
        Auto merged
      mysql-test/t/ndb_alter_table.test:
        Auto merged
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Auto merged
      0db66e24
    • unknown's avatar
      Add testcase for bug#13316 · 3dfdb256
      unknown authored
        ndb big alter table
      
      
      mysql-test/r/ndb_alter_table.result:
        Add testcase for bug#13316
      mysql-test/t/ndb_alter_table.test:
        Add testcase for bug#13316
      3dfdb256
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1 · c399e359
      unknown authored
      into  mysql.com:/usr/home/ram/work/4.1.b11553
      
      
      sql/sql_yacc.yy:
        Auto merged
      c399e359
    • unknown's avatar
      a fix (#11553: gives error if aggregate user-defined function in HAVING clause). · 072e00a4
      unknown authored
      
      sql/sql_yacc.yy:
        a fix (#11553: gives error if aggregate user-defined function in HAVING clause).
        udf_sum_expr_list rule introduced and used for aggregate udf functions:            
          - call inc_in_sum_expr() before udf_expr_list parsing                            
            (as in_sum_expr rule does).
      072e00a4
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0 · b5194a69
      unknown authored
      into  mysql.com:/usr/home/ram/work/5.0.b11553
      
      
      sql/sql_yacc.yy:
        Auto merged
      b5194a69
    • unknown's avatar
      bug#13316 · 285fee67
      unknown authored
        ndb alter table with big dicttabinfo
        send alter_tab_req fragmented as signal can get larger than MAX_MESSAGE_SIZE
      
      
      ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        DictTabInfo used during alter table can easily becom larger than MAX_MESSAGE_SIZE
          send fragmented instead
      285fee67
    • unknown's avatar
      GCC4 build fix · 3daa1adb
      unknown authored
      
      ndb/src/ndbapi/NdbUtil.hpp:
        gcc4 build fix
      3daa1adb