1. 02 Feb, 2007 4 commits
    • unknown's avatar
      Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1 · 3f3d9093
      unknown authored
      into  a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1
      
      
      BUILD/SETUP.sh:
        Auto merged
      client/mysql.cc:
        Auto merged
      configure.in:
        Auto merged
      libmysqld/lib_sql.cc:
        Auto merged
      sql/filesort.cc:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/handler.cc:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_cmpfunc.h:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_subselect.cc:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/opt_range.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_plugin.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.cc:
        Auto merged
      storage/archive/ha_archive.cc:
        Auto merged
      plugin/daemon_example/daemon_example.cc:
        Merged with main 5.1
      sql/mysqld.cc:
        Merged with main 5.1
      3f3d9093
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 13390deb
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      sql/item_func.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      13390deb
    • unknown's avatar
      after merge fix · c01bbd33
      unknown authored
      
      mysql-test/r/ndb_read_multi_range.result:
        result fix
      mysql-test/t/ndb_read_multi_range.test:
        test case fix
      c01bbd33
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt · ed0e4a96
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      mysql-test/r/distinct.result:
        Auto merged
      mysql-test/r/join_nested.result:
        Auto merged
      mysql-test/r/null_key.result:
        Auto merged
      mysql-test/r/select.result:
        Auto merged
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/r/subselect3.result:
        Auto merged
      mysql-test/r/trigger.result:
        Auto merged
      mysql-test/t/select.test:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      mysql-test/t/trigger.test:
        Auto merged
      sql/filesort.cc:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_cmpfunc.h:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_subselect.cc:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/opt_sum.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.cc:
        Auto merged
      mysql-test/r/func_time.result:
        manual merge
      mysql-test/r/information_schema.result:
        manual merge
      mysql-test/t/func_time.test:
        manual merge
      mysql-test/t/information_schema.test:
        manual merge
      sql/opt_range.cc:
        manual merge
      sql/sql_delete.cc:
        manual merge
      sql/sql_lex.h:
        manual merge
      ed0e4a96
  2. 01 Feb, 2007 9 commits
  3. 31 Jan, 2007 16 commits
    • unknown's avatar
      use MTR_BUILD_THREAD=auto for rpm builds · 5ab91b8e
      unknown authored
      
      support-files/mysql.spec.sh:
        use MTR_BUILD_THREAD=auto
      5ab91b8e
    • unknown's avatar
      Merge kahlann.erinye.com:/home/df/mysql/build/mysql-5.0-build-work · 79728607
      unknown authored
      into  kahlann.erinye.com:/home/df/mysql/build/mysql-5.1-build-work
      
      
      support-files/mysql.spec.sh:
        merge fix
      79728607
    • unknown's avatar
      Merge kahlann.erinye.com:/home/df/mysql/build/mysql-5.0-build · 4a7724b7
      unknown authored
      into  kahlann.erinye.com:/home/df/mysql/build/mysql-5.0-build-work
      
      
      support-files/mysql.spec.sh:
        Auto merged
      4a7724b7
    • unknown's avatar
      Merge trift2.:/MySQL/M50/push-5.0 · bd49a2df
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      client/mysql.cc:
        Auto merged
      configure.in:
        Auto merged
      bd49a2df
    • unknown's avatar
      MTR_BUILD_THREAD=auto for test runs during RPM build · 50c3198d
      unknown authored
      
      support-files/mysql.spec.sh:
        MTR_BUILD_THREAD=auto for test runs
      50c3198d
    • unknown's avatar
      Merge trift2.:/MySQL/M50/bug23293-5.0 · 717850d3
      unknown authored
      into  trift2.:/MySQL/M50/push-5.0
      
      
      717850d3
    • unknown's avatar
      Merge trift2.:/MySQL/M50/bug12676-5.0 · 30b90282
      unknown authored
      into  trift2.:/MySQL/M50/push-5.0
      
      
      configure.in:
        Auto merged
      30b90282
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · c118eeae
      unknown authored
      into  olga.mysql.com:/home/igor/mysql-5.0-opt
      
      
      c118eeae
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 0375a7a8
      unknown authored
      into  mysql.com:/home/hf/work/25973/my50-25973
      
      
      0375a7a8
    • unknown's avatar
      merging · 036314d9
      unknown authored
      
      mysql-test/t/ps_1general.test:
        replace_result fixed
      036314d9
    • unknown's avatar
      Fix bug#23293 "readline detection broken on NetBSD": · 7a71303c
      unknown authored
      Its root cause is a difference between the "readline" and "libedit" (header files)
      definitions of "rl_completion_entry_function", where the "libedit" one is wrong anyway:
      This variable is used as a pointer to a function returning "char *",
      but "libedit" declares it as returning "int" and then adds casts on usage.
      
      Change it to "CPFunction *" and get rid of the casts.
      
      
      client/mysql.cc:
        Fix bug#23293 "readline detection broken on NetBSD":
        
        Now that the "libedit" header files declares "rl_completion_entry_function" correctly,
        it need not be cast on usage, and "no_completion()" can be declared to return "char *".
      cmd-line-utils/libedit/readline.c:
        Fix bug#23293 "readline detection broken on NetBSD":
        
        Now that the "libedit" header files declares "rl_completion_entry_function" correctly,
        it need not be cast on usage, and "complet_func()" is a "CPFunction *" as well.
      cmd-line-utils/libedit/readline/readline.h:
        Fix bug#23293 "readline detection broken on NetBSD":
        
        Declare "rl_completion_entry_function()" to be a "CPFunction *", this avoids casts
        and brings "libedit" in sync with "readline".
      7a71303c
    • unknown's avatar
      Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 41f862e1
      unknown authored
      into  rakia.gmz:/home/kgeorge/mysql/autopush/B25575-5.0-opt
      
      
      sql/mysql_priv.h:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.cc:
        Auto merged
      41f862e1
    • unknown's avatar
      BUG#25575: ERROR 1052 (Column in from clause is ambiguous) with sub-join · fbc16a85
      unknown authored
       Two problems here:
      
       Problem 1:
      
       While constructing the join columns list the optimizer does as follows:
        1. Sets the join_using_fields/natural_join members of the right JOIN 
         operand.
        2. Makes a "table reference" (TABLE_LIST) to parent the two tables.
        3. Assigns the join_using_fields/is_natural_join of the wrapper table
         using join_using_fields/natural_join of the rightmost table
        4. Sets join_using_fields to NULL for the right JOIN operand.
        5. Passes the parent table up to the same procedure on the upper 
         level.
      
       Step 1 overrides the the join_using_fields that are set for a nested 
       join wrapping table in step 4.
       Fixed by making a designated variable SELECT_LEX::prev_join_using to 
       pass the data from step 1 to step 4 without destroying the wrapping 
       table data.
      
       Problem 2:
      
       The optimizer checks for ambiguous columns while transforming 
       NATURAL JOIN/JOIN USING to JOIN ON. While doing that there was no
       distinction between columns that are used in the generated join
       condition (where ambiguity can be checked) and the other columns
       (where ambiguity can be checked only when resolving references
       coming from outside the JOIN construct itself).
       Fixed by allowing the non-USING columns to be present in multiple 
       copies in both sides of the join and moving the ambiguity check 
       to the place where unqualified references to the join columns are
       resolved (find_field_in_natural_join()).
      
      
      mysql-test/r/join_nested.result:
        BUG#25575: ERROR 1052 (Column in from clause is ambiguous) with sub-join
         - test case
      mysql-test/t/join_nested.test:
        BUG#25575: ERROR 1052 (Column in from clause is ambiguous) with sub-join
         - test case
      sql/mysql_priv.h:
        BUG#25575: ERROR 1052 (Column in from clause is ambiguous) with sub-join
         - use SELECT_LEX to store the ref to JOIN USING list needed by the 
           parser
      sql/sql_base.cc:
        BUG#25575: ERROR 1052 (Column in from clause is ambiguous) with sub-join
         - proper check for duplicate cols
         - more detailed debug output
      sql/sql_lex.h:
        BUG#25575: ERROR 1052 (Column in from clause is ambiguous) with sub-join
         - use SELECT_LEX to store the ref to JOIN USING list needed by the 
           parser
      sql/sql_parse.cc:
        BUG#25575: ERROR 1052 (Column in from clause is ambiguous) with sub-join
         - proper check for duplicate cols in JOIN USING
      sql/sql_yacc.yy:
        BUG#25575: ERROR 1052 (Column in from clause is ambiguous) with sub-join
         - use SELECT_LEX to store the ref to JOIN USING list needed by the 
           parser
      sql/table.cc:
        BUG#25575: ERROR 1052 (Column in from clause is ambiguous) with sub-join
         - return null if no table ref (as in nested join columns).
      fbc16a85
    • unknown's avatar
      Merge mysql.com:/home/hf/work/25973/my50-25973 · e788274b
      unknown authored
      into  mysql.com:/home/hf/work/25973/my51-25973
      
      
      mysql-test/t/ps_1general.test:
        merging
      e788274b
    • unknown's avatar
      bug #25973 (ps_1general.test fails in embedded server) · e8040084
      unknown authored
      
      mysql-test/t/ps_1general.test:
        replace_result fixed
      e8040084
    • unknown's avatar
      Bug #25551: inconsistent behaviour in grouping NULL, depending on index type · d01ec5e7
      unknown authored
       The optimizer takes away columns from GROUP BY/DISTINCT if they constitute
       all the parts of an unique index.
       However if some of the columns can contain NULLs this cannot be done 
      (because an UNIQUE index can have multiple rows with NULL values).
       Fixed by not using UNIQUE indexes with nullable columns to remove
       grouping columns from GROUP BY/DISTINCT.
      
      
      mysql-test/r/distinct.result:
        Bug #25551: inconsistent behaviour in grouping NULL, depending on index type
         - test case
      mysql-test/t/distinct.test:
        Bug #25551: inconsistent behaviour in grouping NULL, depending on index type
         - test case
      sql/sql_select.cc:
        Bug #25551: inconsistent behaviour in grouping NULL, depending on index type
         - UNIQUE NULL indices don't guarantee GROUP BY/DISTINCT.
      d01ec5e7
  4. 30 Jan, 2007 11 commits
    • unknown's avatar
      Merge mysql.com:/home/kent/bk/tmp2/mysql-5.0-build · 4cac6d4c
      unknown authored
      into  mysql.com:/home/kent/bk/tmp2/mysql-5.1-build
      
      
      sql/gen_lex_hash.cc:
        Auto merged
      support-files/mysql.spec.sh:
        Auto merged
      BitKeeper/deleted/.del-my_create_tables.c~c121a0c4c427ebb:
        Auto merged
      BitKeeper/deleted/.del-my_manage.c~4de50e721d227d19:
        Auto merged
      BitKeeper/deleted/.del-my_manage.h~9d2cbc1e8bc894f:
        Auto merged
      BitKeeper/deleted/.del-mysql_test_run_new.c~a23ab2c4b28b25ad:
        Auto merged
      BitKeeper/deleted/.del-mysql_test_run_new.dsp~9d8078f3f02fcc8e:
        Auto merged
      BitKeeper/deleted/.del-mysql_test_run_new.vcproj~1ddaed30361efefe:
        Auto merged
      BitKeeper/deleted/.del-mysql_test_run_new_ia64.dsp~e7ee71ec8d2995e3:
        Auto merged
      4cac6d4c
    • unknown's avatar
      c6c436f8
    • unknown's avatar
      gen_lex_hash.cc: · 0142be55
      unknown authored
        If inserting a GPL header, include a complete one
      Makefile.am, mysql.dsw, mysql.sln:
        Removed C version of mysql-test-run
      mysql.spec.sh:
        Specify GPL license only in GPL sources
      .del-my_manage.h:
        Delete: mysql-test/my_manage.h
      mysql.spec.sh:
        Added GPL header
      .del-mysql_test_run_new.c:
        Delete: mysql-test/mysql_test_run_new.c
      .del-mysql_test_run_new.dsp:
        Delete: VC++Files/mysql-test/mysql_test_run_new.dsp
      .del-my_create_tables.c:
        Delete: mysql-test/my_create_tables.c
      .del-mysql_test_run_new_ia64.dsp:
        Delete: VC++Files/mysql-test/mysql_test_run_new_ia64.dsp
      msql2mysql.sh:
        Use up-to-date GPL header
      .del-mysql_test_run_new.vcproj:
        Delete: VC++Files/mysql-test/mysql_test_run_new.vcproj
      .del-my_manage.c:
        Delete: mysql-test/my_manage.c
      
      
      scripts/msql2mysql.sh:
        Use up-to-date GPL header
      support-files/mysql.spec.sh:
        Added GPL header
      sql/gen_lex_hash.cc:
        If inserting a GPL header, include a complete one
      BitKeeper/deleted/.del-mysql_test_run_new.c:
        Delete: mysql-test/mysql_test_run_new.c
      BitKeeper/deleted/.del-mysql_test_run_new.dsp:
        Delete: VC++Files/mysql-test/mysql_test_run_new.dsp
      BitKeeper/deleted/.del-mysql_test_run_new.vcproj:
        Delete: VC++Files/mysql-test/mysql_test_run_new.vcproj
      BitKeeper/deleted/.del-mysql_test_run_new_ia64.dsp:
        Delete: VC++Files/mysql-test/mysql_test_run_new_ia64.dsp
      BitKeeper/deleted/.del-my_create_tables.c:
        Delete: mysql-test/my_create_tables.c
      BitKeeper/deleted/.del-my_manage.c:
        Delete: mysql-test/my_manage.c
      BitKeeper/deleted/.del-my_manage.h:
        Delete: mysql-test/my_manage.h
      VC++Files/mysql.dsw:
        Removed C version of mysql-test-run
      VC++Files/mysql.sln:
        Removed C version of mysql-test-run
      mysql-test/Makefile.am:
        Removed C version of mysql-test-run
      0142be55
    • unknown's avatar
      Merge olga.mysql.com:/home/igor/dev-opt/mysql-4.1-opt-bug24987 · 309f2a60
      unknown authored
      into  olga.mysql.com:/home/igor/dev-opt/mysql-5.0-opt-bug24987
      
      
      sql/opt_sum.cc:
        Auto merged
      sql/sql_select.cc:
        Manual merge
      309f2a60
    • unknown's avatar
      Fixed bug #24987. · 1944b4ca
      unknown authored
      Made the function opt_sum_query to return HA_ERR_KEY_NOT_FOUND when
      no matches were found (instead of -1 it returned prior this patch).
      This changes allow us to avoid possible conflicts with return values
      from user-defined handler methods which also may return -1. 
      No particular test cases are provided with this fix.
      
      
      sql/opt_sum.cc:
        Fixed bug #24987.
        Made the function opt_sum_query to return HA_ERR_KEY_NOT_FOUND when
        no matches were found (instead of -1 it returned prior this patch).
        This changes allow us to avoid possible conflicts with return values
        from user-defined handler methods which also may return -1.
      sql/sql_select.cc:
        Fixed bug #24987.
        Made the function opt_sum_query to return HA_ERR_KEY_NOT_FOUND when
        no matches were found (instead of -1 it returned prior this patch).
        This changes allow us to avoid possible conflicts with return values
        from user-defined handler methods which also may return -1.
      1944b4ca
    • unknown's avatar
      Merge kahlann.erinye.com:/home/df/mysql/build/mysql-5.1-build-work-5.1.15-and-opt-merge · fd0952ff
      unknown authored
      into  kahlann.erinye.com:/home/df/mysql/build/mysql-5.1-build
      
      
      sql/mysqld.cc:
        Auto merged
      fd0952ff
    • unknown's avatar
      Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 21d915c0
      unknown authored
      into  rakia.gmz:/home/kgeorge/mysql/autopush/B25643-5.0-opt
      
      
      21d915c0
    • unknown's avatar
      This is an empty changeset to trigger a rerun of pushbuild. · 32b5759e
      unknown authored
      
      sql/table.h:
        Only touched a comment.
      32b5759e
    • unknown's avatar
      Bug #25643: SEC_TO_TIME function problem · 3cb3a9a1
      unknown authored
       Checking for NULL before calling the val_xxx()
       methods only checks for such arguments that are 
       known to be NULLs at compile time. 
       The arguments that may or may not contain
       NULLs (e.g. function calls and possibly others)
       are not checked at all.
       Fixed by first calling the val_xxx() method and
       then checking for null in SEC_TO_TIME().
       In addition QUARTER() was not returning 0 (as all the 
       val_int() functions do when processing a NULL value).
      
      
      mysql-test/r/func_time.result:
        Bug #25643: SEC_TO_TIME function problem
         - test case
      mysql-test/t/func_time.test:
        Bug #25643: SEC_TO_TIME function problem
         - test case
      sql/item_timefunc.cc:
        Bug #25643: SEC_TO_TIME function problem
         - null handling fixed for QUARTER() and SEC_TO_TIME()
      3cb3a9a1
    • unknown's avatar
      Merge kahlann.erinye.com:/home/df/mysql/build/mysql-5.0-build-work · 0fd19170
      unknown authored
      into  kahlann.erinye.com:/home/df/mysql/build/mysql-5.0-build-work-25530
      
      
      0fd19170
    • unknown's avatar
      Merge kahlann.erinye.com:/home/df/mysql/build/mysql-5.1-build-work · 0f1a3537
      unknown authored
      into  kahlann.erinye.com:/home/df/mysql/build/mysql-5.1-build-work-25530
      
      
      BUILD/SETUP.sh:
        Auto merged
      configure.in:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      0f1a3537