1. 22 Jan, 2007 2 commits
    • unknown's avatar
      Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 734c118d
      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
      734c118d
    • unknown's avatar
      BUG#16590: Optimized does not do right "const" table pre-read · 82bfd109
      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
      82bfd109
  2. 15 Jan, 2007 1 commit
    • unknown's avatar
      Bug#21713 incorrect value for the REFERENTIAL_CONSTRAINTS.UNIQUE_CONSTRAINT_NAME column · 362ad4da
      unknown authored
      added new field 'REFERENCED_TABLE_NAME' to 'referential_constraints' table
      field 'UNIQUE_CONSTRAINT_NAME' contains the name of the referenced index
      
      
      mysql-test/r/information_schema_inno.result:
        result fix
      mysql-test/t/information_schema_inno.test:
        test fix
      sql/sql_show.cc:
        added new field 'REFERENCED_TABLE_NAME' to 'referential_constraints' table
        field 'UNIQUE_CONSTRAINT_NAME' contains the name of the referenced index
      sql/table.h:
        added 'referenced_key_name' member to 'st_foreign_key_info' struct
      storage/innobase/handler/ha_innodb.cc:
        added the filling of referenced key name
      362ad4da
  3. 14 Jan, 2007 1 commit
  4. 12 Jan, 2007 7 commits
    • unknown's avatar
      bug #24186 (nested query across partitions returns fewer records) · e12d0da3
      unknown authored
      Subselect's engine checks table->status field to determine if the
      record was properly found when we use keyread upon the table.
      Partition engine checks all the partitions for given key
      before return. So if matching record was found in the first
      partition and no matching records were found in the second, 
      we have table->status == NOT_FOUND after the function, what
      makes subselects to skip matching records.
      The patch adds table->status= 0 if we actually found something.
      
      
      mysql-test/r/partition.result:
        result fixed
      mysql-test/t/partition.test:
        testcase
      sql/ha_partition.cc:
        table->status set to 0 if we found something in previous partitions
      e12d0da3
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.0 · df17609c
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      sql/mysqld.cc:
        Auto merged
      df17609c
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt · 39d39734
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      mysql-test/r/order_by.result:
        Auto merged
      mysql-test/t/order_by.test:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      mysql-test/r/join.result:
        manual merge
      mysql-test/t/join.test:
        manual merge
      39d39734
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.1 · 32d6754e
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      sql/mysqld.cc:
        Auto merged
      storage/innobase/handler/ha_innodb.cc:
        Auto merged
      32d6754e
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/4.1 · 7ecd5479
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.0
      
      7ecd5479
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt · af9f9778
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.0
      
      
      sql/mysqld.cc:
        Auto merged
      af9f9778
    • unknown's avatar
      Function mysql_rm_tmp_tables(): · 91cfbda7
      unknown authored
      fixed valgrind error
      fixed indentation
      
      91cfbda7
  5. 11 Jan, 2007 12 commits
    • unknown's avatar
      Merge mjorgensen@bk-internal.mysql.com:/home/bk/mysql-5.0 · 799f1aba
      unknown authored
      into  tiger.mmj.dk:/Users/mmj/bktrees/mysql-5.1-build
      
      
      configure.in:
        Auto merged
      mysql-test/install_test_db.sh:
        Auto merged
      BitKeeper/deleted/.del-CMakeLists.txt~3:
        Auto merged
      BitKeeper/deleted/.del-configure.js:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      scripts/mysql_install_db.sh:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      799f1aba
    • unknown's avatar
      Merge siva.hindu.god:/home/tsmith/m/bk/mysql-5.0-build · ea72c946
      unknown authored
      into  siva.hindu.god:/home/tsmith/m/bk/mysql-5.1-build
      
      
      BitKeeper/deleted/.del-CMakeLists.txt~3:
        Auto merged
      BitKeeper/deleted/.del-README~1:
        Auto merged
      BitKeeper/deleted/.del-configure.js:
        Auto merged
      BitKeeper/deleted/.del-mysql_test_run_new.c~a23ab2c4b28b25ad:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      scripts/mysql_install_db.sh:
        Auto merged
      configure.in:
        Manual merge
      mysql-test/install_test_db.sh:
        Manual merge
      sql/mysqld.cc:
        Manual merge
      ea72c946
    • unknown's avatar
      Merge trift2.:/MySQL/M50/tmp-5.0 · 32a5f7d0
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      mysys/my_read.c:
        Auto merged
      BitKeeper/deleted/.del-mysqldmax.dsp~5d213fe1c204142e:
        Auto merged
      BitKeeper/deleted/.del-libmysqld.dsp~78dc6a589e5a4149:
        Null merge.
      BitKeeper/deleted/.del-mysql.dsw~7ea9e16395f139f4:
        Null merge.
      BitKeeper/deleted/.del-mysqld.dsp~ffdbf2d234e23e56:
        Null merge.
      BitKeeper/deleted/.del-mysqldemb.dsp~1baf8c0e59ee9f7e:
        Null merge.
      BitKeeper/deleted/.del-mysqlserver.dsp~d99cfb2d291e3785:
        Null merge.
      scripts/make_binary_distribution.sh:
        Null merge, this change is already suppressed in 4.1.
      support-files/MySQL-shared-compat.spec.sh:
        Null merge, this change is already suppressed in 4.1.
      32a5f7d0
    • unknown's avatar
      Merge trift2.:/MySQL/M50/tmp1-5.0 · 9dc14298
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      configure.in:
        Auto merged
      9dc14298
    • unknown's avatar
      Merge trift2.:/MySQL/M51/mysql-5.1 · 0eb0c6e8
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      0eb0c6e8
    • unknown's avatar
      Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 054be5a0
      unknown authored
      into  rakia.gmz:/home/kgeorge/mysql/autopush/B25106-5.0-opt
      
      
      sql/sql_base.cc:
        Auto merged
      054be5a0
    • unknown's avatar
      BUG#25106: A USING clause in combination with a VIEW results in column · ba013b9d
      unknown authored
                 aliases ignored
      When a column reference to a column in JOIN USING is resolved and a new 
      Item is created for this column the user defined name was lost.
      This fix preserves the alias by setting the name of the new Item to the
      original alias.
      
      
      mysql-test/r/join.result:
        BUG#25106: A USING clause in combination with a VIEW results in column
                   aliases ignored
         - test case
      mysql-test/t/join.test:
        BUG#25106: A USING clause in combination with a VIEW results in column
                   aliases ignored
         - test case
      sql/sql_base.cc:
        BUG#25106: A USING clause in combination with a VIEW results in column
                   aliases ignored
         - take the alias of the Item to be replaced and set it into the newly
           allocated Item.
      ba013b9d
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 77760784
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      77760784
    • unknown's avatar
      after merge fix · 110639c2
      unknown authored
      110639c2
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-5.1-opt · f4bad3ce
      unknown authored
      into  mysql.com:/d2/hf/mr10/my51-mr10
      
      
      mysql-test/t/csv.test:
        Auto merged
      f4bad3ce
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-5.0-opt · a8e42cdb
      unknown authored
      into  mysql.com:/d2/hf/mr10/my50-mr10
      
      
      sql/mysqld.cc:
        Auto merged
      a8e42cdb
    • unknown's avatar
      Merge mjorgensen@bk-internal.mysql.com:/home/bk/mysql-5.0-sage · 64dcf6f3
      unknown authored
      into  tiger.mmj.dk:/Users/mmj/bktrees/mysql-5.0
      
      
      configure.in:
        Auto merged
      mysql-test/install_test_db.sh:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      scripts/mysql_install_db.sh:
        Auto merged
      sql/CMakeLists.txt:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      win/configure.js:
        Auto merged
      64dcf6f3
  6. 10 Jan, 2007 17 commits
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1-opt · 0ca8b8b2
      unknown authored
      into  olga.mysql.com:/home/igor/mysql-4.1-opt
      
      0ca8b8b2
    • unknown's avatar
      configure.in: · 7b4f0c40
      unknown authored
        Corrected default for --disable-grant-options
      
      
      configure.in:
        Corrected default for --disable-grant-options
      7b4f0c40
    • unknown's avatar
      Merge olga.mysql.com:/home/igor/mysql-4.1-opt · 9e41a90b
      unknown authored
      into  olga.mysql.com:/home/igor/mysql-5.0-opt
      
      
      sql/item.cc:
        Auto merged
      mysql-test/r/order_by.result:
        Manual merge
      mysql-test/t/order_by.test:
        Manual merge
      9e41a90b
    • unknown's avatar
      Merge bk@192.168.21.1:mysql-5.0 · 41ed9b72
      unknown authored
      into  mysql.com:/d2/hf/mr10/my50-mr10
      
      41ed9b72
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · c5026ab6
      unknown authored
      into  mysql.com:/home/hf/work/mysql-5.1-mrg
      
      c5026ab6
    • unknown's avatar
      configure.in: · 1e2e19cc
      unknown authored
        Removed line accidently inserted when correcting bug#18526
      
      
      configure.in:
        Removed line accidently inserted when correcting bug#18526
      1e2e19cc
    • unknown's avatar
      Merge mysql.com:/home/hf/work/24502/my51-24502 · a1b407c7
      unknown authored
      into  mysql.com:/home/hf/work/mysql-5.1-mrg
      
      
      sql/sql_partition.cc:
        Auto merged
      a1b407c7
    • unknown's avatar
      Merge mysql.com:/home/hf/work/22451/my51-22451 · 6d3e1204
      unknown authored
      into  mysql.com:/home/hf/work/mysql-5.1-mrg
      
      
      storage/federated/ha_federated.cc:
        Auto merged
      6d3e1204
    • unknown's avatar
      Merge mysql.com:/d2/hf/common/my51-common · 457369a9
      unknown authored
      into  mysql.com:/d2/hf/mr10/my51-mr10
      
      
      mysql-test/t/csv.test:
        Auto merged
      457369a9
    • unknown's avatar
      Merge mysql.com:/d2/hf/common/my50-common · 55f2f560
      unknown authored
      into  mysql.com:/d2/hf/mr10/my50-mr10
      
      55f2f560
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt · 0999c28a
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      libmysql/libmysql.c:
        Auto merged
      mysql-test/r/join_nested.result:
        Auto merged
      mysql-test/r/ps.result:
        Auto merged
      mysql-test/r/type_binary.result:
        Auto merged
      mysql-test/r/user_var.result:
        Auto merged
      mysql-test/t/ps.test:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      mysql-test/t/type_newdecimal.test:
        Auto merged
      mysql-test/t/user_var.test:
        Auto merged
      sql/field.h:
        Auto merged
      sql/filesort.cc:
        Auto merged
      sql/handler.cc:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_cmpfunc.h:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/item_subselect.cc:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql-common/client.c:
        Auto merged
      sql-common/my_time.c:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/table.cc:
        Auto merged
      strings/decimal.c:
        Auto merged
      sql/mysqld.cc:
        manual merge
      sql/sql_base.cc:
        manual merge
      0999c28a
    • unknown's avatar
      after merge fix · b5ef5616
      unknown authored
      b5ef5616
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/4.1-opt · 9d9963bd
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.0-opt
      
      
      sql/mysqld.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/mysql_priv.h:
        manual merge
      9d9963bd
    • unknown's avatar
      Fix for bug#20867 InnoDB Bug - create temporary table+crash => mysqld needs to clean up · c99b724f
      unknown authored
      2nd version
      During tmp tables cleanup we get the handler for temporary table
      and delete table using handler method.
      
      
      sql/mysql_priv.h:
        added function prototype
      sql/mysqld.cc:
        added call of mysql_rm_tmp_tables() function
      sql/sql_base.cc:
        mysql_rm_tmp_tables()
        -removed from table_cache_init
        -During tmp tables cleanup we get the handler for temporary table
         and delete table using handler method. 
         it allows to remove orphan records from data dictionary(InnoDB)
      c99b724f
    • unknown's avatar
      Fixed bug #25427. · e7fb567a
      unknown authored
      In the method Item_field::fix_fields we try to resolve the name of
      the field against the names of the aliases that occur in the select
      list. This is done by a call of the function find_item_in_list.
      When this function finds several occurrences of the field name
      it sends an error message to the error queue and returns 0.
      Yet the code did not take into account that find_item_in_list
      could return 0 and tried to dereference the returned value.
      
      
      mysql-test/r/order_by.result:
        Added a test case for bug #25427.
      mysql-test/t/order_by.test:
        Added a test case for bug #25427.
      sql/item.cc:
        Fixed bug #25427.
        In the method Item_field::fix_fields we try to resolve the name of
        the field against the names of the aliases that occur in the select
        list. This is done by a call of the function find_item_in_list.
        When this function finds several occurrences of the field name 
        it sends an error message to the error queue and returns 0.
        Yet the code did not take into account that find_item_in_list
        could return 0 and tried to dereference the returned value.
      e7fb567a
    • unknown's avatar
      WL #3670: Compile-time option to remove GRANT-related startup options · 020261ef
      unknown authored
      - configure --disable-grant-options defines DISABLE_GRANT_OPTIONS
      - configure.js/cmake also updated
      - if DISABLE_GRANT_OPTIONS is defined, mysqld no longer recognizes:
        --bootstrap
        --init-file
        --skip-grant-tables
      
      Scripts which rely on those three options are modified to check the environment for MYSQLD_BOOTSTRAP; it should be set to the full path of a mysqld which does handle those options.
      
      For example:
      
      $ export MYSQLD_BOOTSTRAP
      $ MYSQLD_BOOTSTRAP=/path/to/full/MySQL/bin/mysqld
      $ mysql_install_db
      $ make test
      
      
      configure.in:
        WL#3670
        
        Add --disable-grant-options
      mysql-test/install_test_db.sh:
        Add MYSQLD_BOOTSTRAP env variable, to enable test suite to work even if mysqld does not accept --bootstrap or --skip-grant-tables.
      mysql-test/mysql-test-run.pl:
        Add MYSQLD_BOOTSTRAP env variable, to enable test suite to work even if mysqld does not accept --bootstrap or --skip-grant-tables.
      mysql-test/mysql_test_run_new.c:
        Mention need for MYSQLD_BOOTSTRAP in a comment, in case this needs to be used with a mysqld which does not accept the --bootstrap option.
      scripts/mysql_install_db.sh:
        Add MYSQLD_BOOTSTRAP env variable, to enable mysqld_install_db to work even if mysqld does not accept --bootstrap or --skip-grant-tables.
      sql/CMakeLists.txt:
        Add DISABLE_GRANT_OPTIONS define
      sql/mysqld.cc:
        Add DISABLE_GRANT_OPTIONS define, which removes the --bootstrap, --init-file, and --skip-grant-tables options
      win/README:
        Document the DISABLE_GRANT_OPTIONS define
      win/configure.js:
        Handle DISABLE_GRANT_OPTIONS
      020261ef
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 7775febf
      unknown authored
      into  olga.mysql.com:/home/igor/mysql-5.0-opt
      
      7775febf