1. 24 Jun, 2005 4 commits
    • unknown's avatar
      Bug#8321 - myisampack bug in compression algorithm · 2ee77549
      unknown authored
      Added 64-bit extensions, comments, extended statistics 
      and trace prints.
      
      
      include/my_base.h:
        Bug#8321 - myisampack bug in compression algorithm
        Added a comment.
      myisam/mi_packrec.c:
        Bug#8321 - myisampack bug in compression algorithm
        Fixed a function comment.
      myisam/myisampack.c:
        Bug#8321 - myisampack bug in compression algorithm
        Enlarged the variables which hold Huffman codes to
        ulonglong and adjusted the functions accordingly.
        Added test code for long Huffman codes.
        Enlarged the distinct column values buffer (tree_buff)
        and added checks to stay in its range.
        Added statistics and trace prints.
        Added a lot of comments.
      mysys/tree.c:
        Bug#8321 - myisampack bug in compression algorithm
        Added a check against overflow of the tree element count.
        The tree element count is only 31 bits, but sometimes
        used for big numbers. There is however no application yet,
        which relies on exact tree element counts.
      2ee77549
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · c6415c97
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-bug3-5.0
      
      c6415c97
    • unknown's avatar
      Merge tkatchaounov@bk-internal.mysql.com:/home/bk/mysql-5.0 · 231f70fb
      unknown authored
      into mysql.com:/home/timka/mysql/src/5.0-virgin
      
      231f70fb
    • unknown's avatar
      Fixed test result for BUG#11185. · a2f7d857
      unknown authored
      a2f7d857
  2. 23 Jun, 2005 36 commits
    • unknown's avatar
      fixed encrypt() name · fdb283a8
      unknown authored
      fdb283a8
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · ff4b3940
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-bug3-5.0
      
      ff4b3940
    • unknown's avatar
      fixed encrypt() print (BUG#7024) · 52d76c5f
      unknown authored
      
      mysql-test/r/view.result:
        using encrypt & substring_index in view
      mysql-test/t/view.test:
        using encrypt & substring_index in view
      sql/item_strfunc.h:
        fixed encrypt() print
      52d76c5f
    • unknown's avatar
    • unknown's avatar
      Merge tkatchaounov@bk-internal.mysql.com:/home/bk/mysql-5.0 · 24b10116
      unknown authored
      into mysql.com:/home/timka/mysql/src/5.0-virgin
      
      24b10116
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · 0dd60645
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-bug3-5.0
      
      
      sql/sql_class.h:
        Auto merged
      0dd60645
    • unknown's avatar
      Merge mysql.com:/home/svoj/devel/mysql/mysql-5.0.8-build · ea00bdee
      unknown authored
      into mysql.com:/home/svoj/devel/mysql/mysql-5.0.9
      
      ea00bdee
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 750e7e0d
      unknown authored
      into mysql.com:/opt/local/work/mysql-5.0-sp_instr
      
      750e7e0d
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0 · 54279162
      unknown authored
      into mysql.com:/home/psergey/mysql-5.0-bug8441
      
      54279162
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0 · 46bf7087
      unknown authored
      into mysql.com:/home/psergey/mysql-5.0-bug8441
      
      46bf7087
    • unknown's avatar
      Merge · fe445e23
      unknown authored
      
      mysql-test/r/case.result:
        SCCS merged
      mysql-test/t/case.test:
        SCCS merged
      sql/item_cmpfunc.cc:
        SCCS merged
      fe445e23
    • unknown's avatar
      removed unneed line · 7cd280da
      unknown authored
      7cd280da
    • unknown's avatar
      WL#2286 - Compile MySQL w/YASSL support · 66560669
      unknown authored
      Fix for compilation failure with Forte Developer C++.
      
      
      configure.in:
        Export ARFLAGS, so innobase could pick it up.
      innobase/configure.in:
        Use ARFLAGS exported by parent configure script.
      66560669
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 0c4e1733
      unknown authored
      into mysql.com:/opt/local/work/mysql-5.0-sp_instr
      
      0c4e1733
    • unknown's avatar
      - implement inheritance of sp_instr: public Query_arena. · 1c90d1e2
      unknown authored
        We need every instruction to have its own arena, because we want to
        track instruction's state (INITIALIZED_FOR_SP -> EXECUTED). Because of 
        `if' statements and other conditional instructions used in stored 
        procedures, not every instruction of a stored procedure gets executed 
        during the first (or even subsequent) execution of the procedure. 
        So it's better if we track the execution state of every instruction 
        independently.
        All instructions of a given procedure now also share sp_head's 
        mem_root, but keep their own free_list.
        This simplifies juggling with free Item lists in sp_head::execute.
      - free_items() moved to be a member of Query_arena. 
      - logic of 'backup_arena' debug member of Query_arena has been
        changed to support
        multi-backups. Until now, TRUE 'backup_arena' meant that there is
        exactly one active backup of the THD arena. Now it means simply that
        the arena is used for backup, so that we can't accidentally overwrite an 
        existing backup. This allows doing multiple backups, e.g. in
        sp_head::execute and Cursor::fetch, when THD arena is already backed up
        but we want to set yet another arena (usually the 'permanent' arena,
        to save permanent transformations/optimizations of a parsed tree).
      
      
      sql/sp_head.cc:
        - use Query_arena support in sp_head::execute() as now sp_instr inherites
          from it.
      sql/sp_head.h:
        - inherite sp_instr from Query_arena
      sql/sql_class.cc:
        - changed the principle of Query_arena::backup_arena; free_items is now
          a member of Query_arena.
      sql/sql_class.h:
        - changed the principle of Query_arena::backup_arena; free_items is now
          a member of Query_arena.
      sql/sql_prepare.cc:
        free_items() is now a member of Query_arena.
      sql/sql_select.cc:
        free_items() now automatically sets free_list to zero.
      1c90d1e2
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-5.0-release · a5a16053
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-5.0
      
      a5a16053
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1-gca · 834f6341
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-5.0-release
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      834f6341
    • unknown's avatar
      mysql-test-run.pl: · a1c03edd
      unknown authored
        Might need a restart after test with special TZ
        Removed unused argument to run_mysqltest()
      
      
      mysql-test/mysql-test-run.pl:
        Might need a restart after test with special TZ
        Removed unused argument to run_mysqltest()
      a1c03edd
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · 90a099c3
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-bug3-5.0
      
      
      sql/sql_class.h:
        Auto merged
      90a099c3
    • unknown's avatar
      fixed environment restoring in case of error during SP function execution (BUG#9503) · 4342dfab
      unknown authored
      #define macro improvement
      
      
      mysql-test/r/sp-security.result:
        BUG#9503: reseting correct parameters of thread after error in SP function
      mysql-test/t/sp-security.test:
        BUG#9503: reseting correct parameters of thread after error in SP function
      sql/item_func.cc:
        fixed environment restoring in case of error during SP function execution
      sql/protocol.cc:
        added debug print
      sql/sql_class.h:
        fixed #defines to force them to be alvaise in piar, and variable name made more complex for accident repeating in other code
      4342dfab
    • unknown's avatar
      Merge mysql.com:/home/timka/mysql/src/5.0-virgin · eb292e25
      unknown authored
      into mysql.com:/home/timka/mysql/src/5.0-dbg
      
      
      sql/opt_range.cc:
        Auto merged
      eb292e25
    • unknown's avatar
      Merge mysql.com:/home/svoj/devel/mysql/mysql-5.0.8-build · 7263eb0e
      unknown authored
      into mysql.com:/home/svoj/devel/mysql/mysql-5.0.9
      
      7263eb0e
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-5.0 · ac68d527
      unknown authored
      into rurik.mysql.com:/home/igor/mysql-5.0
      
      ac68d527
    • unknown's avatar
      opt_range.cc: · 62b82e18
      unknown authored
        Identation correction.
      
      
      sql/opt_range.cc:
        Identation correction.
      62b82e18
    • unknown's avatar
      Merge mysql.com:/space/my/mysql-4.1 · de9c97ed
      unknown authored
      into mysql.com:/space/my/mysql-5.0-build
      
      de9c97ed
    • unknown's avatar
      Merge rurik.mysql.com:/home/igor/mysql-5.0 · 71150f3c
      unknown authored
      into rurik.mysql.com:/home/igor/dev/mysql-5.0-0
      
      
      sql/opt_range.cc:
        Auto merged
      71150f3c
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0 · e7086e93
      unknown authored
      into mysql.com:/home/psergey/mysql-5.0-back-vac-look
      
      
      sql/opt_range.cc:
        Auto merged
      e7086e93
    • unknown's avatar
      WL#2286 - Compile MySQL w/YASSL support · 547ed845
      unknown authored
      Fix for "multiple definition of __cxa_pure_virtual" link failure
      when compiling with icc.
      
      
      extra/yassl/taocrypt/include/runtime.hpp:
        Do not define __cxa_pure_virtual for ICC.
        Fixes "multiple definition of __cxa_pure_virtual" link failure on production.
      547ed845
    • unknown's avatar
      Merge mysql.com:/space/my/mysql-4.1-build · 2c941994
      unknown authored
      into mysql.com:/space/my/mysql-5.0.8-clone
      
      2c941994
    • unknown's avatar
      - manual merge of the new node names · 84691d4b
      unknown authored
      84691d4b
    • unknown's avatar
      - fixed text file generation - the node names in the info page had changed · ea252b8c
      unknown authored
      
      BitKeeper/deleted/.del-generate-flag-images~f77476753fff8186:
        Delete: Docs/Support/generate-flag-images
      Docs/Makefile.am:
        - fixed node names for the new info file
      Docs/Support/generate-text-files.pl:
        - stop printing if the index was reached
      ea252b8c
    • unknown's avatar
      Fix for BUG#11185. · 9c60ec7f
      unknown authored
        
        The source of the problem is in Field_longlong::cmp. If 'this' is
        an unsigned number, the method casts both the current value, and
        the constant that we compare with to an unsigned number. As a
        result if the constant we compare with is a negative number, it
        wraps to some unsigned number, and the comparison is incorrect.
        
        When the optimizer chooses the "range" access method, this problem
        causes handler::read_range_next to reject the current key when the
        upper bound key is a negative number because handler::compare_key
        incorrectly considers the positive and negative keys to be equal.
        
        The current patch does not correct the source of the problem in
        Field_longlong::cmp because it is not easy to propagate sign
        information about the constant at query execution time. Instead
        the patch changes the range optimizer so that it never compares
        unsiged fields with negative constants. As an added benefit,
        queries that do such comparisons will execute faster because
        the range optimizer replaces conditions like:
        (a) (unsigned_int [< | <=] negative_constant) == FALSE
        (b) (unsigned_int [> | >=] negative_constant) == TRUE
        with the corresponding constants.
        In some cases this may even result in constant time execution.
      
      
      mysql-test/r/range.result:
        - Added test for BUG#11185
        - Added missing test from 4.1. This test also tests the fix for BUG#11185.
      mysql-test/t/range.test:
        - Added test for BUG#11185
        - Added missing test from 4.1. This test also tests the fix for BUG#11185.
      sql/opt_range.cc:
        Added a new optimization to the range optimizer where we detect that
        an UNSIGNED field is compared with a negative constant. Depending on
        the comparison operator, we know directly that the result of the
        comparison is either TRUE or FALSE for all input values, and we need
        not check each value.
            
        This optimization is also necessary so that the index range access
        method produces correct results when comparing unsigned fields with
        negative constants.
      9c60ec7f
    • unknown's avatar
      opt_range.cc: · ff696375
      unknown authored
        Fixed buf #11487.
        Added a call of  QUICK_RANGE_SELECT::init to the
        QUICK_RANGE_SELECT::reset method. Without it the second
        evaluation of a subquery employing the range access failed.
      subselect.result, subselect.test:
        Added a test case for bug #11487.
      
      
      mysql-test/t/subselect.test:
        Added a test case for bug #11487.
      mysql-test/r/subselect.result:
        Added a test case for bug #11487.
      sql/opt_range.cc:
        Fixed buf #11487.
        Added a call of  QUICK_RANGE_SELECT::init to the
        QUICK_RANGE_SELECT::reset method. Without it the second
        evaluation of a subquery employing the range access failed.
      ff696375
    • unknown's avatar
      Merge mysql.com:/home/timka/mysql/src/4.1-virgin · a198efbb
      unknown authored
      into mysql.com:/home/timka/mysql/src/4.1-bug-11185
      
      a198efbb
    • unknown's avatar
      Merge mysql.com:/home/timka/mysql/src/4.1-dbg · 7054c5a2
      unknown authored
      into mysql.com:/home/timka/mysql/src/5.0-dbg
      
      7054c5a2
    • unknown's avatar
      Fix for BUG#11185. · 683da10e
      unknown authored
      The source of the problem is in Field_longlong::cmp. If 'this' is
      an unsigned number, the method casts both the current value, and
      the constant that we compare with to an unsigned number. As a
      result if the constant we compare with is a negative number, it
      wraps to some unsigned number, and the comparison is incorrect.
      
      When the optimizer chooses the "range" access method, this problem
      causes handler::read_range_next to reject the current key when the
      upper bound key is a negative number because handler::compare_key
      incorrectly considers the positive and negative keys to be equal.
      
      The current patch does not correct the source of the problem in
      Field_longlong::cmp because it is not easy to propagate sign
      information about the constant at query execution time. Instead
      the patch changes the range optimizer so that it never compares
      unsiged fields with negative constants. As an added benefit,
      queries that do such comparisons will execute faster because
      the range optimizer replaces conditions like:
      (a) (unsigned_int [< | <=] negative_constant) == FALSE
      (b) (unsigned_int [> | >=] negative_constant) == TRUE
      with the corresponding constants.
      In some cases this may even result in constant time execution.
      
      
      mysql-test/r/range.result:
        - Changed incorrect result of an old test
        - Added new results for BUG#11185
      mysql-test/t/range.test:
        - Added new tests for BUG#11185
        - Deleted an old comment because now the problem is fixed
      sql/opt_range.cc:
        Added a new optimization to the range optimizer where we detect that
        an UNSIGNED field is compared with a negative constant. Depending on
        the comparison operator, we know directly that the result of the
        comparison is either TRUE or FALSE for all input values, and we need
        not check each value.
        
        This optimization is also necessary so that the index range access
        method produces correct results when comparing unsigned fields with
        negative constants.
      683da10e