1. 16 Apr, 2005 2 commits
    • unknown's avatar
      subselect.result, subselect.test: · d85fdc1b
      unknown authored
        Added a test case for bug #9516.
      item_subselect.h:
        Fixed bug #9516.
        The bug was due to that fact that the class Item_subselect
        inherited the generic implementation of the function
        not_null_tables that was not valid for the objects
        of this class. As a result evaluation of the
        not_null_tables attribute was not correct for subqueries.
        This caused invalid transformations of outer joins into
        inner joins.
      
      
      sql/item_subselect.h:
        Fixed bug #9516.
        The bug was due to that fact that the class Item_subselect
        inherited the generic implementation of the function
        not_null_tables that was not valid for the objects
        of this class. As a result evaluation of the
        not_null_tables attribute was not correct for subqueries.
        This caused invalid transformations of outer joins into
        inner joins.
      mysql-test/t/subselect.test:
        Added a test case for bug #9516.
      mysql-test/r/subselect.result:
        Added a test case for bug #9516.
      d85fdc1b
    • unknown's avatar
      subselect.result, subselect.test: · 2b92a78e
      unknown authored
        Added a test case for bug #9338.
      sql_select.cc:
        Fixed bug #9338.
        When an occurence of a field reference has to be replaced
        by another field reference the whole Item_field must be
        replaced.
      item.cc:
        Fixed bug #9338.
        The method Item_field::replace_equal_field_processor was
        replaced by Item_field::replace_equal_field. The new method
        is used to replace the occurences of Item_field objects.
      item.h:
        Fixed bug #9338.
        The virtual function replace_equal_field_processor was replaced
        by replace_equal_field. The latter is supposed to be used as a
        callback function in calls of the method transform.
      
      
      sql/item.h:
        Fixed bug #9338.
        The virtual function replace_equal_field_processor was replaced
        by replace_equal_field. The latter is supposed to be used as a
        callback function in calls of the method transform.
      sql/item.cc:
        The method Item_field::replace_equal_field_processor was
        replaced by Item_field::replace_equal_field The new method
        is used to replace the occurences of Item_field objects.
      sql/sql_select.cc:
        Fixed bug #9338.
        When an occurence of a field reference has to be replaced
        by another field reference the whole Item_field must be
        replaced.
      mysql-test/t/subselect.test:
        Added a test case for bug #9338.
      mysql-test/r/subselect.result:
        Added a test case for bug #9338.
      2b92a78e
  2. 14 Apr, 2005 2 commits
    • unknown's avatar
      Merge rurik.mysql.com:/home/igor/mysql-5.0 · 1c2c6bba
      unknown authored
      into rurik.mysql.com:/home/igor/dev/mysql-5.0-0
      
      
      1c2c6bba
    • unknown's avatar
      information_schema.result, information_schema.test: · cfefd88d
      unknown authored
        Added a test in connection with the fix for
        bug #6106.
      view.result, view.test:
        Added test cases for bugs #6106/6107.
      sql_show.cc:
        The addition of the case for items of the type REF_ITEM in the
        function uses_only_table_name_fields became necessary after
        the fix for bug #6106.
      sql_base.cc:
        The problem was due to the fact that two different column
        references were glued together though one of them belonged to
        a subquery while another to an outer query. This caused
        eventually a wrong calculation of values for the used_tables
        attribute.
      
      
      sql/sql_base.cc:
        The problem was due to the fact that two different column
        references were glued together though one of them belonged to
        a subquery while another to an outer query. This caused
        eventually a wrong calculation of values for the used_tables
        attribute.
      sql/sql_show.cc:
        The addition of the case for items of the type REF_ITEM in the
        function uses_only_table_name_fields became necessary after
        the fix for bug #6106.
      mysql-test/t/view.test:
        Added test cases for bugs #6106/6107.
      mysql-test/r/view.result:
        Added test cases for bugs #6106/6107.
      mysql-test/t/information_schema.test:
        Added a test in connection with the fix for
        bug #6106.
      mysql-test/r/information_schema.result:
        Added a test in connection with the fix for
        bug #6106.
      cfefd88d
  3. 13 Apr, 2005 26 commits
    • unknown's avatar
      Merge mysql.com:/home/cps/mysql/trees/mysql-4.1 · 8487a67b
      unknown authored
      into mysql.com:/home/cps/mysql/trees/mysql-5.0
      
      
      mysys/default.c:
        Auto merged
      sql/ha_innodb.cc:
        Auto merged
      8487a67b
    • unknown's avatar
      post review fix · 82231c24
      unknown authored
      
      mysys/default.c:
        cleanup + check for the last line in the file in "!include" directive processing
      82231c24
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0 · 11b666fb
      unknown authored
      into mysql.com:/home/jimw/my/mysql-5.0-clean
      
      
      11b666fb
    • unknown's avatar
      Allow SQLCOM_CALL in prepared mode. · c23c4c7c
      unknown authored
      
      mysql-test/r/ps.result:
        Test results: adding tests for CALL statement in prepared mode.
      mysql-test/t/ps.test:
        Adding tests for CALL statement in prepared mode.
      c23c4c7c
    • unknown's avatar
      Merge from 4.1 · 9c2446f3
      unknown authored
      
      innobase/fil/fil0fil.c:
        Auto merged
      innobase/row/row0sel.c:
        Auto merged
      mysql-test/Makefile.am:
        Auto merged
      mysql-test/t/ctype_ucs_binlog.test:
        Auto merged
      9c2446f3
    • unknown's avatar
      ha_innodb.cc: · a40ecb48
      unknown authored
        Fix part of bug #9670: if MySQL calls ::store_lock with TL_IGNORE, do not change prebuilt->select_lock_type; this fix may heal the assertion failures reported in UPDATE and multi-table UPDATE; it is not clear if this fixes the problems in OPTIMIZE TABLE
      
      
      sql/ha_innodb.cc:
        Fix part of bug #9670: if MySQL calls ::store_lock with TL_IGNORE, do not change prebuilt->select_lock_type; this fix may heal the assertion failures reported in UPDATE and multi-table UPDATE; it is not clear if this fixes the problems in OPTIMIZE TABLE
      a40ecb48
    • unknown's avatar
      Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0 · 26d75744
      unknown authored
      into mysql.com:/usr/local/home/marty/MySQL/mysql-5.0
      
      
      26d75744
    • unknown's avatar
      Fix ctype_ucs_binlog test when ucs2 not available · 338df0b7
      unknown authored
      
      mysql-test/t/ctype_ucs_binlog.test:
        Require ucs support
      338df0b7
    • unknown's avatar
      Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0 · 9983cb59
      unknown authored
      into mysql.com:/usr/local/home/marty/MySQL/mysql-5.0
      
      
      9983cb59
    • unknown's avatar
      Merge mysql.com:/usr/local/bk/mysql-5.0 · 3caaded3
      unknown authored
      into mysql.com:/home/pem/work/mysql-5.0
      
      
      3caaded3
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1 · 02e19379
      unknown authored
      into mysql.com:/home/jimw/my/mysql-4.1-clean
      
      
      02e19379
    • unknown's avatar
      Fixed BUG#9674: Stored Procs: Using declared vars in algebric operation · e2089cdd
      unknown authored
                      causes system crash.
      
      
      mysql-test/r/sp.result:
        Added test case for BUG#9674.
      mysql-test/t/sp.test:
        Added test case for BUG#9674.
      sql/item.cc:
        Returning a pointer to a local variable is not a good idea.
        Better to use parameter which is there for exactly this purpose.
      e2089cdd
    • unknown's avatar
      Merge · f698e882
      unknown authored
      
      ndb/src/ndbapi/Ndb.cpp:
        Auto merged
      f698e882
    • unknown's avatar
      Fixed BUG#9856: Stored procedures: crash if handler for sqlexception, not found. · d6c2a1e3
      unknown authored
      
      mysql-test/r/sp.result:
        Added test case for BUG#6129.
      mysql-test/t/sp.test:
        Added test case for BUG#6129.
      sql/sp_pcontext.h:
        Only need one handler counter.
      sql/sql_yacc.yy:
        Count handlers correctly.
      d6c2a1e3
    • unknown's avatar
      Merge · f0438d54
      unknown authored
      
      innobase/dict/dict0dict.c:
        Auto merged
      innobase/dict/dict0load.c:
        Auto merged
      innobase/include/dict0dict.h:
        Auto merged
      innobase/row/row0mysql.c:
        Auto merged
      myisam/mi_check.c:
        Auto merged
      myisam/mi_dynrec.c:
        Auto merged
      myisam/myisamdef.h:
        Auto merged
      mysql-test/r/kill.result:
        Auto merged
      mysql-test/t/kill.test:
        Auto merged
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      ndb/src/kernel/main.cpp:
        Auto merged
      ndb/src/mgmsrv/MgmtSrvr.hpp:
        Auto merged
      sql/ha_innodb.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      f0438d54
    • unknown's avatar
      fil0fil.c: · 3fbb9c39
      unknown authored
        At the shutdown, write the latest lsn only to the first pages of the ibdata files of the system tablespace, NOT to the .ibd files; writing to tens of thousands .ibd files can take minutes
      
      
      innobase/fil/fil0fil.c:
        At the shutdown, write the latest lsn only to the first pages of the ibdata files of the system tablespace, NOT to the .ibd files; writing to tens of thousands .ibd files can take minutes
      3fbb9c39
    • unknown's avatar
      Added test case for BUG#6129: Stored procedure won't display @@sql_mode value. · a3aed4d8
      unknown authored
      
      mysql-test/r/sp.result:
        Added testcase for BUG#6129: Check that sql_mode is really set in mysql.proc.
      mysql-test/t/sp.test:
        Added testcase for BUG#6129: Check that sql_mode is really set in mysql.proc.
      a3aed4d8
    • unknown's avatar
      row0sel.c: · 67d88e81
      unknown authored
        Fix the patch of Jan to optimize next-key locking in searches of type 'primary key >= some value'
      
      
      innobase/row/row0sel.c:
        Fix the patch of Jan to optimize next-key locking in searches of type 'primary key >= some value'
      67d88e81
    • unknown's avatar
      Merge heikki@bk-internal.mysql.com:/home/bk/mysql-4.1 · ad5ec8a4
      unknown authored
      into hundin.mysql.fi:/home/heikki/mysql-4.1
      
      
      ad5ec8a4
    • unknown's avatar
      row0sel.c: · 880d0295
      unknown authored
        Do not test the value of err if the lock operation was skipped because innodb_logs_unsafe_for_binlog was TRUE; though this did not cause any bugs visible to the user, because err is inited to DB_SUCCESS at the start of the function row_search_for_mysql()
      
      
      innobase/row/row0sel.c:
        Do not test the value of err if the lock operation was skipped because innodb_logs_unsafe_for_binlog was TRUE; though this did not cause any bugs visible to the user, because err is inited to DB_SUCCESS at the start of the function row_search_for_mysql()
      880d0295
    • unknown's avatar
      Merge · f53284f1
      unknown authored
      
      sql/mysqld.cc:
        Auto merged
      f53284f1
    • unknown's avatar
      Fixed failed merge · a160dcb7
      unknown authored
      a160dcb7
    • unknown's avatar
      Merge · a5187a1b
      unknown authored
      
      sql/mysqld.cc:
        Auto merged
      a5187a1b
    • unknown's avatar
    • unknown's avatar
      Fixed a bug where next-key locking doesn't allow the insert which does · a7de2795
      unknown authored
      not produce phantom (bug #9354).
      
      
      a7de2795
    • unknown's avatar
      Remove references to result.es files · 4a5edc96
      unknown authored
      
      mysql-test/Makefile.am:
        Remove reference to result.es
      scripts/make_binary_distribution.sh:
        Remove references to result.es
      4a5edc96
  4. 12 Apr, 2005 10 commits
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0 · 5630f073
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-5.0
      
      
      sql/sql_parse.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      5630f073
    • unknown's avatar
      mysql-test/r/flush_block_commit.result · 70d8ae01
      unknown authored
          correct result after bugfix
      sql/sql_class.cc
          initialize net.query_cache_query
      
      
      mysql-test/r/flush_block_commit.result:
        correct result after bugfix
      sql/sql_class.cc:
        initialize net.query_cache_query
      sql/sql_yacc.yy:
        oops
      70d8ae01
    • unknown's avatar
      Bit type: code clean-up. · 923b76f8
      unknown authored
      
      sql/field.h:
        Field_bit_as_char::size_of() added - we use it in the ::new_key_field().
      sql/sql_table.cc:
        We have to set pack_flag for bit fields in the mysql_prepare_table()
        as we use it in the create_length_to_internal_length().
      923b76f8
    • unknown's avatar
      Merge mysql.com:/usr/local/bk/mysql-5.0 · 87e742c1
      unknown authored
      into mysql.com:/home/pem/work/mysql-5.0
      
      
      87e742c1
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0 · b59dc1e8
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-5.0
      
      
      sql/handler.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      b59dc1e8
    • unknown's avatar
      FLUSH TABLES WITH READ LOCK should block writes to binlog too · 859b3e16
      unknown authored
      
      mysql-test/r/flush_block_commit.result:
        FLUSH TABLES WITH READ LOCK should block writes to binlog too
        it does not yet
      mysql-test/t/flush_block_commit.test:
        FLUSH TABLES WITH READ LOCK should block writes to binlog too
        it does not yet
      859b3e16
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · ce02a55c
      unknown authored
      into neptunus.(none):/home/msvensson/mysql/mysql-5.0
      
      
      ce02a55c
    • unknown's avatar
      Bit type: code cleanup. · 3767fb01
      unknown authored
      
      sql/field.cc:
        We have to use memcmp() here to get determinate results.
      sql/sql_table.cc:
        Should set pack_flag here instead of doing |=
      3767fb01
    • unknown's avatar
      Fixed BUG#7185: Stored procedure crash if identifier is AVG · db40f4a5
      unknown authored
      
      mysql-test/r/sp.result:
        Added test case for BUG#7185.
      mysql-test/t/sp.test:
        Added test case for BUG#7185.
      sql/sql_yacc.yy:
        Allow non-reserved words as stored procedure names.
      db40f4a5
    • unknown's avatar
      InnoDB: Ignore character set mismatch in ALTER TABLE and RENAME TABLE · dec90f5b
      unknown authored
      if foreign_key_checks=0. (Bug #9802)
      
      
      innobase/dict/dict0dict.c:
        dict_foreign_add_to_cache(): Add flag check_types.
        If the flag is FALSE, ignore character set mismatch.
      innobase/dict/dict0load.c:
        dict_load_foreign(), dict_load_foreigns(): Add flag check_types.
        If the flag is FALSE, differences in character sets will be ignored.
      innobase/include/dict0dict.h:
        dict_foreign_add_to_cache(): Add flag check_types.
        If the flag is FALSE, differences in character sets will be ignored.
      innobase/include/dict0load.h:
        dict_load_foreigns(): Add flag check_types.
        If the flag is FALSE, differences in character sets will be ignored.
      innobase/row/row0mysql.c:
        row_table_add_foreign_constraints(), row_rename_table_for_mysql():
        Pass trx->check_foreigns to dict_load_foreigns()
      sql/ha_innodb.cc:
        ha_innobase::rename_table(): Clear trx->check_foreign if necessary.
      dec90f5b