1. 27 Jun, 2005 9 commits
    • unknown's avatar
      Fix test after last push · 93b7a93b
      unknown authored
      93b7a93b
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · d7a7b886
      unknown authored
      into mysql.com:/my/mysql-4.1
      
      d7a7b886
    • unknown's avatar
      Portability fixes · 87321362
      unknown authored
      Fixes while reviewing new pushed code
      NULL as argument to encrypt/decrypt should return NULL without a warning
      
      
      client/mysqldump.c:
        Cleanup
        Ensure we free allocated memory
        Portability fixes
      client/mysqltest.c:
        Cleanup of code during review
        Portability fixes (Don't use 'bool')
      mysql-test/r/func_encrypt.result:
        NULL as argument to encrypt/decrypt should return NULL without a warning
      mysql-test/r/func_encrypt_nossl.result:
        Added test of NULL argument
      mysql-test/t/func_encrypt_nossl.test:
        Added test of NULL argument
      sql/handler.cc:
        Cleanup during code review
      sql/item_strfunc.cc:
        NULL as argument to encrypt/decrypt should return NULL without a warning
      sql/sql_parse.cc:
        Fix wrong merge (fix was not needed as the previous code was reverted)
      sql/sql_table.cc:
        Removed extra new line
      87321362
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 410a037e
      unknown authored
      into mysql.com:/my/mysql-4.1
      
      410a037e
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 9712bb4c
      unknown authored
      into  mishka.local:/home/my/mysql-4.1
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      9712bb4c
    • unknown's avatar
      Better bug fix for: · 663b4c4f
      unknown authored
      #9728  'Decreased functionality in "on duplicate key update
      #8147  'a column proclaimed ambigous in INSERT ... SELECT .. ON DUPLICATE'
      
      This ensures fields are uniquely qualified and also that one can't update other tables in the ON DUPLICATE KEY UPDATE part
      
      
      mysql-test/r/insert_select.result:
        More tests for bug #9728 and #8147
      mysql-test/r/insert_update.result:
        Updated tests after changing how INSERT ... SELECT .. ON DUPLICATE KEY works
      mysql-test/t/insert_select.test:
        More tests for bug #9728 and #8147
      mysql-test/t/insert_update.test:
        Updated tests after changing how INSERT ... SELECT .. ON DUPLICATE KEY works
      mysys/my_access.c:
        Cleanup (shorter loop variable names)
      sql/ha_ndbcluster.cc:
        Indentation fixes
      sql/item.cc:
        Remove item_flags
      sql/item.h:
        Remove item_flags
      sql/mysql_priv.h:
        New arguments to mysql_prepare_insert
      sql/sql_base.cc:
        Remove old fix for bug #8147
      sql/sql_insert.cc:
        Extend mysql_prepare_insert() with new field list for tables that can be used in the values port of ON DUPLICATE KEY UPDATE
      sql/sql_parse.cc:
        Revert fix for #9728
        Allow one to use other tables in ON DUPLICATE_KEY for INSERT ... SELECT if there is no GROUP BY clause
      sql/sql_prepare.cc:
        New arguments to mysql_prepare_insert
      sql/sql_yacc.yy:
        Revert bug fix for #9728
      663b4c4f
    • unknown's avatar
      Include <sys/wait.h> to get WEXITSTATUS · dca8f40c
      unknown authored
      dca8f40c
    • unknown's avatar
      Add "#include <stdlib.h>" to define WEXITSTATUS · 952ad99c
      unknown authored
      952ad99c
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 9eb9eca7
      unknown authored
      into neptunus.(none):/home/msvensson/mysql/mysql-4.1
      
      9eb9eca7
  2. 24 Jun, 2005 3 commits
    • unknown's avatar
      Bug#10178 - failure to find a row in heap table by concurrent UPDATEs · 8f490b2c
      unknown authored
      Moved the key statistics update to info().
      The table is not locked in open(). This made wrong stats possible.
      
      No test case for the test suite.
      This happens only with heavy concurrency.
      A test script is added to the bug report.
      
      
      mysql-test/r/heap_hash.result:
        Bug#10178 - failure to find a row in heap table by concurrent UPDATEs
        Updated test results to reflect the new  statistics behaviour.
      mysql-test/t/heap_hash.test:
        Bug#10178 - failure to find a row in heap table by concurrent UPDATEs
        Added a FLUSH TABLES to avoid statistics differences between normal 
        and ps-protocol tests.
      sql/ha_heap.cc:
        Bug#10178 - failure to find a row in heap table by concurrent UPDATEs
        Moved the key statistics update to info().
        The table is not locked in open(). This made wrong stats possible.
      sql/ha_heap.h:
        Bug#10178 - failure to find a row in heap table by concurrent UPDATEs
        Added an element to track the validity of the key statistics.
      8f490b2c
    • unknown's avatar
    • unknown's avatar
      an improvement (bug #7851: C++ 'new' conflicts with kernel header asm/system.h). · 5eef0d8c
      unknown authored
      
      include/my_global.h:
        an improvement (bug #7851: C++ 'new' conflicts with kernel header asm/system.h).
        redefine 'new' before #include <asm/atomic.h> in any case.
      5eef0d8c
  3. 23 Jun, 2005 17 commits
    • unknown's avatar
      Merge tkatchaounov@bk-internal.mysql.com:/home/bk/mysql-4.1 · d5f9abb2
      unknown authored
      into mysql.com:/home/timka/mysql/src/4.1-virgin
      
      d5f9abb2
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 460f10ba
      unknown authored
      into neptunus.(none):/home/msvensson/mysql/mysql-4.1
      
      460f10ba
    • unknown's avatar
      Merge tkatchaounov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 2331d476
      unknown authored
      into mysql.com:/home/timka/mysql/src/4.1-virgin
      
      2331d476
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1-gca · 63f3396a
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-4.1
      
      63f3396a
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 · 4c36fc00
      unknown authored
      into mysql.com:/home/psergey/mysql-4.1-bug10151
      
      4c36fc00
    • unknown's avatar
      sql_parse.cc: · 95c04248
      unknown authored
        Fix for fix for bug #9728
        Error caused server hang on prepared insert ... select
      
      
      sql/sql_parse.cc:
        Fix for fix for bug #9728
        Error caused server hang on prepared insert ... select
      95c04248
    • 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 spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 · 056392d5
      unknown authored
      into mysql.com:/home/psergey/mysql-4.1-bug10151
      
      056392d5
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 28c546fc
      unknown authored
      into neptunus.(none):/home/msvensson/mysql/mysql-4.1
      
      28c546fc
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 040bb665
      unknown authored
      into  mishka.local:/home/my/mysql-4.1
      
      040bb665
    • unknown's avatar
      Merge tkatchaounov@bk-internal.mysql.com:/home/bk/mysql-4.1 · c9f959be
      unknown authored
      into mysql.com:/home/timka/mysql/src/4.1-virgin
      
      c9f959be
    • unknown's avatar
      Merge lgrimmer@bk-internal.mysql.com:/home/bk/mysql-4.1 · b6a32770
      unknown authored
      into mysql.com:/space/my/mysql-4.1
      
      b6a32770
    • 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
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 · b825c16e
      unknown authored
      into mysql.com:/home/psergey/mysql-4.1-bug10151
      
      b825c16e
    • 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
      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
  4. 22 Jun, 2005 11 commits