1. 04 Oct, 2007 10 commits
    • unknown's avatar
      Merge mhansson@bk-internal:/home/bk/mysql-5.1-opt · 805cbbbf
      unknown authored
      into  dl145s.mysql.com:/data0/mhansson/bug30942/my51-bug30942
      
      805cbbbf
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 747be9a2
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      client/mysqldump.c:
        Auto merged
      mysql-test/r/func_math.result:
        Auto merged
      mysql-test/r/func_misc.result:
        Auto merged
      mysql-test/r/mysqldump.result:
        Auto merged
      mysql-test/r/view_grant.result:
        Auto merged
      mysql-test/t/func_math.test:
        Auto merged
      mysql-test/t/func_misc.test:
        Auto merged
      mysql-test/t/mysqldump.test:
        Auto merged
      mysql-test/t/view_grant.test:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      client/client_priv.h:
        manual merge
      747be9a2
    • unknown's avatar
      after merge fix · ee44d804
      unknown authored
      ee44d804
    • unknown's avatar
      Merge mhansson@bk-internal:/home/bk/mysql-5.1-opt · 101f16a3
      unknown authored
      into  dl145s.mysql.com:/data0/mhansson/bug30942/my51-bug30942
      
      
      sql/item_timefunc.h:
        Auto merged
      101f16a3
    • unknown's avatar
      manual merge · 3987c078
      unknown authored
      3987c078
    • unknown's avatar
      Bug#30079 A check for "hidden" I_S tables is flawed · 53fb65b5
      unknown authored
      added check for hidden I_S tables for 'show columns|keys' commands
      
      
      mysql-test/r/information_schema.result:
        test result
      mysql-test/t/information_schema.test:
        test case
      sql/sql_parse.cc:
        added check for hidden I_S tables for 'show columns|keys' commands
      53fb65b5
    • unknown's avatar
      after merge fix · c3a1674a
      unknown authored
      c3a1674a
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt · e51ecad4
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      client/mysqldump.c:
        Auto merged
      mysql-test/r/func_math.result:
        Auto merged
      mysql-test/r/func_misc.result:
        Auto merged
      mysql-test/r/olap.result:
        Auto merged
      mysql-test/t/func_math.test:
        Auto merged
      mysql-test/t/func_misc.test:
        Auto merged
      mysql-test/t/mysqldump.test:
        Auto merged
      mysql-test/t/view_grant.test:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      client/client_priv.h:
        manual merge
      mysql-test/r/mysqldump.result:
        manual merge
      mysql-test/r/view_grant.result:
        manual merge
      sql/field.cc:
        manual merge
      sql/sql_select.cc:
        manual merge
      tests/mysql_client_test.c:
        manual merge
      e51ecad4
    • unknown's avatar
      Merge linux-st28.site:/home/martin/mysql/src/bug30942/my50-bug30942 · f430a5c0
      unknown authored
      into  linux-st28.site:/home/martin/mysql/src/bug30942/my51-bug30942
      
      
      sql/item_timefunc.h:
        Auto merged
      mysql-test/r/type_date.result:
        Bug#30942: Manual merge
      mysql-test/t/type_date.test:
        Bug#30942: Manual merge
      f430a5c0
    • unknown's avatar
      Bug #30942: select str_to_date from derived table returns varying results · e74faf9b
      unknown authored
      The function str_to_date has a field to say whether it's invoked constant 
      arguments. But this member was not initialized, causing the function to
      think that it could use a cache of the format type when said cache was in 
      fact not initialized.
      Fixed by initializing the field to false.
      
      
      mysql-test/r/type_date.result:
        Bug#30942: Test result
      mysql-test/t/type_date.test:
        Bug#30942: Test case
      sql/item_timefunc.h:
        Bug#30942: Initialized const_item to false
      e74faf9b
  2. 03 Oct, 2007 4 commits
  3. 02 Oct, 2007 8 commits
  4. 01 Oct, 2007 8 commits
    • unknown's avatar
      Bug#31095: Unexpected NULL constant caused server crash. · 11a54ec9
      unknown authored
      The Item_func_rollup_const class is used for wrapping constants to avoid
      wrong result for ROLLUP queries with DISTINCT and a constant in the select
      list. This class is also used to wrap up a NULL constant but its null_value
      wasn't set accordingly. This led to a server crash.
      
      Now the null_value of an object of the Item_func_rollup_const class is set
      by its fix_length_and_dec member function.
      
      
      mysql-test/t/olap.test:
        Added a test case for the bug#31095: Unexpected NULL constant caused server crash.
      mysql-test/r/olap.result:
        Added a test case for the bug#31095: Unexpected NULL constant caused server crash.
      sql/item_func.h:
        Bug#31095: Unexpected NULL constant caused server crash. 
        Now the null_value of an object of the Item_func_rollup_const class is set
        by its fix_length_and_dec member function.
      11a54ec9
    • unknown's avatar
      Merge mhansson@bk-internal:/home/bk/mysql-5.1-opt · 16ca1471
      unknown authored
      into  dl145s.mysql.com:/data0/mhansson/bug30832/my51-bug30832
      
      16ca1471
    • unknown's avatar
      Fixed bug #31077. · f90c2d05
      unknown authored
      mysqldump adds the "-- Dump completed on YYYY-MM-DD hh:mm:ss" string
      to the end of output if the --comments switch is on.
      The only way to suppress this line is to use --skip-comments/--compact
      switch.
      
      New switch has been added to the mysqldump client command line:
      --dump-date.
      
      For the compatibility with previous releases, by default the --dump-date
      is on.
      The --dump-date switch forces mysqldump to add date to the
      "-- Dump completed on ..." string at the end of output.
      The --skip-dump-date switch supresses the output of date string
      and uses short form of that commentary: "-- Dump completed".
      --skip-comments or --compact switches disable the whole commentary
      as usual.
      
      
      client/client_priv.h:
        Fixed bug #31077.
        New OPT_DUMP_DATE option has been added to implement
        the mysqldump client --dump-date switch.
      client/mysqldump.c:
        Fixed bug #31077.
        The opt_dump_date variable has been added to imlements
        the mysqldump cliemt --dump-date switch.
        By default this switch is on (for compatibility with previous
        releases).
        The --dump-date switch forces mysqldump to add date to the
        "-- Dump completed on ..." string at the end of output.
        The --skip-dump-date switch supresses the output of date string
        and uses short form of that commentary: "-- Dump completed".
        --skip-comments or --compact switches disable the whole commentary
        as usual.
      mysql-test/t/mysqldump.test:
        Added test case for bug #31077.
      mysql-test/r/mysqldump.result:
        Added test case for bug #31077.
      f90c2d05
    • unknown's avatar
      merge 5.0-opt -> 5.1-opt · d812318c
      unknown authored
      d812318c
    • unknown's avatar
      merge 5.0-opt -> 5.1-opt · 40affabb
      unknown authored
      
      mysql-test/r/func_math.result:
        Auto merged
      mysql-test/t/func_math.test:
        Auto merged
      mysql-test/t/view_grant.test:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      40affabb
    • unknown's avatar
      5d04190d
    • unknown's avatar
      fixed pb problem with the fix for bug 30587 · 0035c0cd
      unknown authored
      0035c0cd
    • unknown's avatar
      Merge linux-st28.site:/home/martin/mysql/src/bug30832/my50-bug30832 · 168b4988
      unknown authored
      into  linux-st28.site:/home/martin/mysql/src/bug30832/my51-bug30832
      
      
      mysql-test/r/func_misc.result:
        Auto merged
      mysql-test/t/func_misc.test:
        Auto merged
      sql/item.h:
        Auto merged
      168b4988
  5. 29 Sep, 2007 1 commit
    • unknown's avatar
      view_grant.result, view_grant.test: · 854abbe9
      unknown authored
        Corrected test case for the bug#29908.
      
      
      mysql-test/t/view_grant.test:
        Corrected test case for the bug#29908.
      mysql-test/r/view_grant.result:
        Corrected test case for the bug#29908.
      854abbe9
  6. 28 Sep, 2007 9 commits
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 614cf6ad
      unknown authored
      into  moonbone.local:/work/27990-bug-5.0-opt-mysql
      
      
      sql/field.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      614cf6ad
    • unknown's avatar
      Bug#27990: Wrong info in MYSQL_FIELD struct members when a tmp table was used. · acb3c59b
      unknown authored
      The change_to_use_tmp_fields function leaves the orig_table member of an
      expression's tmp table field filled for the new Item_field being created.
      Later orig_table is used by the Field::make_field function to provide some
      info about original table and field name to a user. This is ok for a field
      but for an expression it should be empty.
      
      The change_to_use_tmp_fields function now resets orig_table member of
      an expression's tmp table field to prevent providing a wrong info to a user.
      The Field::make_field function now resets the table_name and the org_col_name
      variables when the orig_table is set to 0.
      
      
      sql/field.cc:
        Bug#27990: Wrong info in MYSQL_FIELD struct members when a tmp table was used.
        The Field::make_field function now resets the table_name and the org_col_name
        variables when the orig_table is set to 0.
      sql/sql_select.cc:
        Bug#27990: Wrong info in MYSQL_FIELD struct members when a tmp table was used.
        The change_to_use_tmp_fields function now resets orig_table member of
        an expression's tmp table field to prevent providing a wrong info to a user.
      tests/mysql_client_test.c:
        The test case for the bug#21635 is altered to test behavior on both const and
        non-const tables.
      acb3c59b
    • unknown's avatar
      Bug #30832: Assertion + crash with select name_const('test', now()); · 52a6c31f
      unknown authored
      The NAME_CONST function is required to work correctly with constants only.
      When executed with functions that return types other than those returned by
      Item::field_type (string, int, decimal, or real), the result gets cast to
      one of those types. This cannot happen for constants.
      Fixed by only allowing constants as arguments to NAME_CONST.
      
      
      mysql-test/r/func_misc.result:
        Bug#30832: Test result
      mysql-test/t/func_misc.test:
        Bug#30832: Test case
      sql/item.h:
        Bug#30832: The fix
      52a6c31f
    • unknown's avatar
      Merge macbook:mysql/work/B30587-5.0-opt · cff94452
      unknown authored
      into  magare.gmz:/home/kgeorge/mysql/work/B30587-5.1-opt
      
      
      mysql-test/r/func_math.result:
        Auto merged
      mysql-test/t/func_math.test:
        Auto merged
      sql/item_func.cc:
        Auto merged
      cff94452
    • unknown's avatar
      Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · ef89cecf
      unknown authored
      into  magare.gmz:/home/kgeorge/mysql/autopush/B30587-5.0-opt
      
      
      sql/item_func.cc:
        Auto merged
      ef89cecf
    • unknown's avatar
      Bug #30587: mysql crashes when trying to group by TIME div NUMBER · 17b09640
      unknown authored
      When calculating the result length of an integer DIV function 
      the number of decimals was used without checking the result type
      first. Thus an uninitialized number of decimals was used for some 
      types. This caused an excessive amount of memory to be allocated 
      for the field's buffer and crashed the server.
      
       
      Fixed by using the number of decimals only for data types that 
      can have decimals and thus have valid decimals number.
      
      
      mysql-test/r/func_math.result:
        Bug #30587: test case
      mysql-test/t/func_math.test:
        Bug #30587: test case
      sql/item_func.cc:
        Bug #30587: Don't use decimals on a type that doesn't have them.
      17b09640
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 85cb523a
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      85cb523a
    • unknown's avatar
      Bug#30795 Query on INFORMATION_SCHEMA.SCHEMATA, wrong result · 77122922
      unknown authored
      skip the check of directory presence for 'information_schema' name
      
      
      mysql-test/r/information_schema.result:
        test result
      mysql-test/t/information_schema.test:
        test case
      sql/sql_show.cc:
        skip the check of directory presence for 'information_schema' name
      77122922
    • unknown's avatar
      Bug#30689 Wrong content in I_S.VIEWS.VIEW_DEFINITION if VIEW is based on I_S · 95cb251c
      unknown authored
      view_body_utf8 attribute type is changed to 'escaped string'
      
      
      mysql-test/r/ddl_i18n_koi8r.result:
        result fix
      mysql-test/r/ddl_i18n_utf8.result:
        result fix
      mysql-test/r/information_schema.result:
        result fix
      mysql-test/t/information_schema.test:
        test case
      95cb251c