1. 23 Jun, 2005 1 commit
    • timour@mysql.com's avatar
      Fix for BUG#11185. · 294498e2
      timour@mysql.com 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.
      294498e2
  2. 21 Jun, 2005 8 commits
  3. 20 Jun, 2005 24 commits
  4. 19 Jun, 2005 2 commits
    • kent@mysql.com's avatar
      mysql-test-run.pl: · 917276f2
      kent@mysql.com authored
        Added dummy --manager-port flag, for backward compatibility
        Back port from 5.0, correction of paths to SSL pem files
      mtr_cases.pl:
        Removed hard coded exclude list for embedded server
      mysql-test-run.pl:
        Set environment variable MYSQL_SHOW, to be used in test cases
      917276f2
    • kent@mysql.com's avatar
      Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-4.1 · 32734072
      kent@mysql.com authored
      into mysql.com:/Users/kent/mysql/bk/mysql-4.1
      32734072
  5. 18 Jun, 2005 2 commits
  6. 17 Jun, 2005 3 commits