1. 07 Apr, 2006 10 commits
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new · f0c72b55
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
      
      f0c72b55
    • unknown's avatar
      Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-new · e11c3c94
      unknown authored
      into lmy004.:/work/mysql-5.1-bug17494-real
      
      
      sql/item_timefunc.cc:
        Auto merged
      e11c3c94
    • unknown's avatar
      update tests · 3aac9100
      unknown authored
      
      mysql-test/r/events.result:
        update result
      mysql-test/t/events.test:
        update test (bk mangles cp1251 during merge)
      mysql-test/t/events_scheduling.test:
        fix test
      3aac9100
    • unknown's avatar
      Merge mysql.com:/home/hartmut/projects/mysql/dev/5.0 · 4b05efd0
      unknown authored
      into  mysql.com:/home/hartmut/projects/mysql/dev/5.1
      
      
      mysql-test/r/ctype_ucs.result:
        Auto merged
      mysql-test/r/func_gconcat.result:
        Auto merged
      mysql-test/r/func_time.result:
        Auto merged
      mysql-test/r/information_schema.result:
        Auto merged
      mysql-test/t/ctype_ucs.test:
        Auto merged
      mysql-test/t/information_schema.test:
        Auto merged
      sql/item_sum.cc:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/opt_sum.cc:
        Auto merged
      4b05efd0
    • unknown's avatar
      fix for wrong QUARTER calculation in EXTRACT() (Bug #18100) · 7368ba63
      unknown authored
      
      
      mysql-test/r/func_time.result:
        expected test results for bug #18100 added
      mysql-test/t/func_time.test:
        test case for bug #18100 added
      sql/item_timefunc.cc:
        wrong formula for EXTRACT QUARTER, now uses the same calculus as the QUARTER()
        function
      7368ba63
    • unknown's avatar
      Fix for bug#18281 group_concat changes charset to binary · 436b9c8d
      unknown authored
       skip charset aggregation for order columns
      
      436b9c8d
    • unknown's avatar
      Bug#18469 make test fails on information_schema · 6e107399
      unknown authored
       move test case for bug 14290 to ctype_ucs test
      
      6e107399
    • unknown's avatar
      manual merge · f3e47520
      unknown authored
      
      mysql-test/r/events.result:
        Auto merged
      sql/event.cc:
        Auto merged
      sql/event_timed.cc:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      f3e47520
    • unknown's avatar
      fix for bug #17494 (The algorithm for calculating execution times is not fully correct) · b7814967
      unknown authored
      This also should fix 17493 and 17346, and probably 16397 (not tested).
      WL#1034 (Internal CRON)
      (post-review commit)
      
      
      mysql-test/r/events.result:
        update result
      mysql-test/t/events.test:
        update test
      sql/event.cc:
        seems we get a crash if we compile it this way. better let the worker thread do it,
        this increases the stability.
      sql/event_executor.cc:
        kick in more often
      sql/event_timed.cc:
        - don't NULLify last_executed
        - implement (fix) better get_next_time() which does not use last_executed as basis
          but STARTS. STARTS is used as basis and the next point of time which is before ENDS,
          if set, is being found. The point > now and (point-starts) % interval_expression == 0.
      sql/item_timefunc.cc:
        move calc_time_diff to time.cc as it can be reused in other parts of the 
        server code (see event_timed.cc)
      sql/mysql_priv.h:
        export calc_time_diff() moved to time.cc from item_timefunc.cc
      sql/sql_show.cc:
        - fix presenting of LAST_EXECUTED
        - cleanup a bit
      sql/time.cc:
        - move calc_time_diff() from item_timefunc.cc to here
      b7814967
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new · 7a0e989d
      unknown authored
      into mysql.com:C:/cygwin/home/mysqldev/my/mysql-5.1-new
      
      7a0e989d
  2. 06 Apr, 2006 30 commits
    • unknown's avatar
      Implement --warning-mode in SETUP.sh. The value of the · 80cd9c14
      unknown authored
      argument can be either "pedantic" or "old" (actually, or anything
      else). In case of "pedantic" mode, use -ansi -pedantic compilation
      flags. Fix the build to compile in pedantic mode. (Version 3 of
      the patch, with after-review fixes)
      
      
      BUILD/SETUP.sh:
        Implement --warning-mode in SETUP.sh. The value of the
        argument can be either "pedantic" or "old" (actually, or anything
        else). In case of "pedantic" mode, use -ansi -pedantic compilation
        flags.
      BUILD/compile-pentium-debug-max-no-embedded:
        Rename base_max_configs to base_no_embedded_configs
      BUILD/compile-pentium-debug-max:
        Use double quotes around $@
      BUILD/compile-pentium-valgrind-max:
        Pass command line arguments to SETUP.sh. Allows calling
        compile-pentium-valgrind-max --warning-mode=pedantic
      include/my_global.h:
        Remove an unnecessary ifdef: -pedantic hides the system-wide
        definition of ulong on Linux. In case there is no -pedantic, 
        the system-wide definition is available and HAVE_ULONG is defined
        by configure.
      80cd9c14
    • unknown's avatar
      Merge mysql.com:/home/greenman/workspace-mysql/mysql/mysql-5.0 · 2639449a
      unknown authored
      into  mysql.com:/home/greenman/workspace-mysql/mysql/bug-5.0-16240
      
      2639449a
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0 · 3593d257
      unknown authored
      into  mysql.com:/home/psergey/mysql-5.0-bug18237-review
      
      3593d257
    • unknown's avatar
      Remove redundant code in opt_sum_query() · 221e5e06
      unknown authored
      221e5e06
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 49130410
      unknown authored
      into mysql.com:/home/psergey/mysql-5.1-bug18558-pnd
      
      
      sql/opt_range.cc:
        Auto merged
      49130410
    • unknown's avatar
      BUG#18558 "Partition pruning results are incorrect for certain class of WHERE clauses" : · 898dc67f
      unknown authored
      * Produce right results for conditions that were transformed to "(partitioning_range) AND
        (list_of_subpartitioning_ranges)": make each partition id set iterator auto-reset itself
        after it has returned all partition ids in the sequence 
      * Fix "Range mapping" and "Range mapping" partitioning interval analysis functions to 
        correctly deal with NULL values. 
      
      
      mysql-test/r/partition_pruning.result:
        Testcase for BUG#18558
      mysql-test/t/partition_pruning.test:
        Testcase for BUG#18558
      sql/opt_range.cc:
        BUG#18558: Move partition set iterator initialization to sql_partition.cc, comment fixes
      sql/partition_info.h:
        BUG#18558: Make each partition set iterator auto-reset itself after it has returned all 
        partition ids in the set it enumerates.
      sql/sql_partition.cc:
        BUG#18558: 
        - Make each partition set iterator auto-reset itself after it has returned all 
          partition ids in the set it enumerates. 
        - Fix partition interval analysis to correctly handle intervals with one or both
          NULL bounds.
      sql/sql_partition.h:
        BUG#18558: 
         - Make each partition set iterator auto-reset itself after it has returned all 
           partition ids in the set it enumerates. 
         - Rename PARTITION_ITERATOR::has_null_value to ret_null_part
      898dc67f
    • unknown's avatar
      Fix for Bug #16240 · ba54fa58
      unknown authored
      
      support-files/mysql.server.sh:
        Fixed so that if the datadir has been set via the command line,
        it won't be reset by specifing the basedir after.
      ba54fa58
    • unknown's avatar
      b9b9f40f
    • unknown's avatar
      Merge april.(none):/home/svoj/devel/mysql/BUG14945/mysql-5.0 · a955cc20
      unknown authored
      into  april.(none):/home/svoj/devel/mysql/BUG14945/mysql-5.1-new
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/sp.result:
        Auto merged
      mysql-test/t/sp.test:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_delete.cc:
        Manual merge
      a955cc20
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 1e59d9c8
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.1-new
      
      1e59d9c8
    • unknown's avatar
      Merge svojtovich@bk-internal.mysql.com:/home/bk/mysql-5.0 · e147a4a2
      unknown authored
      into  april.(none):/home/svoj/devel/mysql/BUG14945/mysql-5.0
      
      e147a4a2
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new · c4be9b06
      unknown authored
      into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
      
      c4be9b06
    • unknown's avatar
      Fix for bug#14945 "Truncate table doesn't reset the auto_increment · 0d373cdd
      unknown authored
      counter".
      
      When TRUNCATE TABLE was called within an stored procedure the
      auto_increment counter was not reset to 0 even if straight
      TRUNCATE for this table did this.
      
      This fix makes TRUNCATE in stored procedures to be handled exactly
      in the same way as straight TRUNCATE. We achieve this by rolling
      back the fix for bug 8850, which is no longer needed since stored
      procedures don't require prelocked mode anymore (and TRUNCATE is
      not allowed in stored functions or triggers).
      
      
      mysql-test/r/sp.result:
        Test case for BUG#14945.
      mysql-test/t/sp.test:
        Test case for BUG#14945.
      sql/sql_delete.cc:
        Handle TRUNCATE in stored procedures exactly in the same way as straight
        TRUNCATE (i.e. without falling back to DELETE if possible). We achieve
        this by rolling back the fix for bug 8850, which is no longer relevant
        since stored procedures don't require prelocked mode anymore
        (and TRUNCATE is not allowed in stored functions or triggers).
      sql/sql_parse.cc:
        Handle TRUNCATE in stored procedures exactly in the same way as straight
        TRUNCATE (i.e. without falling back to DELETE if possible). We achieve
        this by rolling back the fix for bug 8850, which is no longer relevant
        since stored procedures don't require prelocked mode anymore
        (and TRUNCATE is not allowed in stored functions or triggers).
      0d373cdd
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · 7e12728a
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1
      
      
      client/mysqltest.c:
        Auto merged
      include/config-win.h:
        Auto merged
      include/m_ctype.h:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/subselect.result:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/opt_range.cc:
        Auto merged
      storage/csv/ha_tina.h:
        Auto merged
      strings/ctype-bin.c:
        Auto merged
      strings/ctype-euc_kr.c:
        Auto merged
      strings/ctype-gb2312.c:
        Auto merged
      strings/ctype-ucs2.c:
        Auto merged
      storage/csv/ha_tina.cc:
        SCCS merged
      7e12728a
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · bf803371
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.0
      
      bf803371
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-5.0 · 0c0e403c
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.1-new
      
      
      libmysql/libmysql.c:
        Auto merged
      sql-common/client.c:
        Auto merged
      0c0e403c
    • unknown's avatar
      Moving mysql_get_server_version() from libmysql.c to client.c, · ba49c29d
      unknown authored
      as it is now required by mysql_set_character_set()
      
      
      libmysql/libmysql.c:
        Removing mysql_get_server_version()
      sql-common/client.c:
        Adding mysql_get_server_version()
      ba49c29d
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-5.0 · ac549c70
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.1-new
      
      
      libmysql/libmysql.c:
        Auto merged
      sql-common/client.c:
        Auto merged
      ac549c70
    • unknown's avatar
      client.c: · 1a6f7c6d
      unknown authored
        Bug#18830 incompatibility new libraries with old server
        Additional 5.0 fix:
        applying the same patch to client.c.
      
      
      sql-common/client.c:
        Bug#18830 incompatibility new libraries with old server
        Additional 5.0 fix:
        applying the same patch to client.c.
      1a6f7c6d
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-4.1 · efff3c00
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.0
      
      
      libmysql/libmysql.c:
        Bug#18830 incompatibility new libraries with old server
        Mergeing from 4.1
      efff3c00
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/5.1/new · a0d6c7d7
      unknown authored
      into  mysql.com:/home/stewart/Documents/MySQL/5.1/new-bug18831
      
      a0d6c7d7
    • unknown's avatar
      BUG#18831 Valgrind: cond jmp on uninit during ndb_dd_dump test · a0a7839e
      unknown authored
      don't know why this didn't generate a warning, but let's fix it too.
      
      
      storage/ndb/src/common/debugger/signaldata/DictTabInfo.cpp:
        fix reversed memset
      a0a7839e
    • unknown's avatar
      BUG#18831 Valgrind: cond jmp on uninit during ndb_dd_dump test · 5592b787
      unknown authored
      
      storage/ndb/src/common/debugger/signaldata/DictTabInfo.cpp:
        fix memset call
        initialize LF_UndoFreeWords(Hi|Lo)
      5592b787
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-5.0 · adfbca88
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.1-new
      
      
      strings/ctype-extra.c:
        Auto merged
      adfbca88
    • unknown's avatar
      libmysql.c: · 82c1be05
      unknown authored
        Bug#18830: incompatibility new libraries with old server
        Don't execute SET NAMES with pre-4.1 server.
      
      
      libmysql/libmysql.c:
        Bug#18830: incompatibility new libraries with old server
        Don't execute SET NAMES with pre-4.1 server.
      82c1be05
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-4.1 · e6ab763c
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.0
      
      e6ab763c
    • unknown's avatar
      This problem has already been fixed by one of the previous changes. · 6423230d
      unknown authored
      Adding test case to cover queries which worked incorrectly earlier:
      Bug#18321: Can't store EuroSign with latin1_german1_ci and latin1_general_ci
      
      
      mysql-test/r/ctype_latin1.result:
        Adding test case for Bug#18321: Can't store EuroSign with latin1_german1_ci and latin1_general_ci
      mysql-test/t/ctype_latin1.test:
        Adding test case for Bug#18321: Can't store EuroSign with latin1_german1_ci and latin1_general_ci
      6423230d
    • unknown's avatar
      ctype-extra.c: · 07b5476b
      unknown authored
        Using local.
      
      
      strings/ctype-extra.c:
        Using local.
      07b5476b
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-4.1 · 7bcff99e
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.0
      
      
      strings/conf_to_src.c:
        Auto merged
      7bcff99e
    • unknown's avatar
      conf_to_src.c: · 56dba198
      unknown authored
        Backporting a 5.0 change:
        MAX_BUF was too small for Index.xml
        Changeing MAX_BUF and adding assert to easier
        catch the same problem in the future.
      ctype-extra.c:
        Regenerating ctype-extra.c with the fixed conf_to_src.
      
      
      strings/ctype-extra.c:
        Regenerating ctype-extra.c with the fixed conf_to_src.
      strings/conf_to_src.c:
        Backporting a 5.0 change:
        MAX_BUF was too small for Index.xml
        Changeing MAX_BUF and adding assert to easier
        catch the same problem in the future.
      56dba198