1. 07 May, 2007 9 commits
    • gshchepa/uchum@gleb.loc's avatar
      Merge gleb.loc:/home/uchum/work/bk/mysql-5.0-opt · 59efb58f
      gshchepa/uchum@gleb.loc authored
      into  gleb.loc:/home/uchum/work/bk/mysql-5.0-opt-27954
      59efb58f
    • gshchepa/uchum@gleb.loc's avatar
      Fixed bug #27954. · eb1f21f8
      gshchepa/uchum@gleb.loc authored
      This bug affects multi-row INSERT ... ON DUPLICATE into table
      with PRIMARY KEY of AUTO_INCREMENT field and some additional UNIQUE indices.
      If the first row in multi-row INSERT contains duplicated values of UNIQUE
      indices, then following rows of multi-row INSERT (with either duplicated or
      unique key field values) may me applied to _arbitrary_ records of table as
      updates.
      This bug was introduced in 5.0. Related code was widely rewritten in 5.1, and
      5.1 is already free of this problem. 4.1 was not affected too.
      
      When updating the row during INSERT ON DUPLICATE KEY UPDATE, we called
      restore_auto_increment(), which set next_insert_id back to 0, but we
      forgot to set clear_next_insert_id back to 0.
      restore_auto_increment() function has been fixed.
      eb1f21f8
    • evgen@moonbone.local's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 6ec0bc24
      evgen@moonbone.local authored
      into  moonbone.local:/mnt/gentoo64/work/28133-bug-5.0-opt-mysql
      6ec0bc24
    • evgen@moonbone.local's avatar
      Bug#28133: Wrong DATE/DATETIME comparison in IN() function. · 7d473a1a
      evgen@moonbone.local authored
      The IN function was comparing DATE/DATETIME values either as ints or as
      strings. Both methods have their disadvantages and may lead to a wrong
      result.
      
      Now IN function checks whether all of its arguments has the STRING result
      types and at least one of them is a DATE/DATETIME item. If so it uses either
      an object of the in_datetime class or an object of the cmp_item_datetime
      class to perform its work. If the IN() function arguments are rows then
      row columns are checked whether the DATE/DATETIME comparator should be used
      to compare them.
      The in_datetime class is used to find occurence of the item to be checked
      in the vector of the constant DATE/DATETIME values. The cmp_item_datetime
      class is used to compare items one by one in the DATE/DATETIME context.
      Both classes obtain values from items with help of the get_datetime_value()
      function and cache the left item if it is a constant one.
      7d473a1a
    • evgen@moonbone.local's avatar
      item_func.cc: · 6bef06ed
      evgen@moonbone.local authored
        Fixed compiler warnings.
      6bef06ed
    • holyfoot/hf@mysql.com/hfmain.(none)'s avatar
      Merge mysql.com:/d2/hf/mrg/mysql-4.1-opt · 6ca4db26
      holyfoot/hf@mysql.com/hfmain.(none) authored
      into  mysql.com:/d2/hf/mrg/mysql-5.0-opt
      6ca4db26
    • holyfoot/hf@mysql.com/hfmain.(none)'s avatar
      Merge bk@192.168.21.1:mysql-5.0 · 37a9575b
      holyfoot/hf@mysql.com/hfmain.(none) authored
      into  mysql.com:/d2/hf/mrg/mysql-5.0-opt
      37a9575b
    • holyfoot/hf@mysql.com/hfmain.(none)'s avatar
      Merge bk@192.168.21.1:mysql-4.1 · e8d125d3
      holyfoot/hf@mysql.com/hfmain.(none) authored
      into  mysql.com:/d2/hf/mrg/mysql-4.1-opt
      e8d125d3
    • tomas@whalegate.ndb.mysql.com's avatar
      Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0 · 35a0af31
      tomas@whalegate.ndb.mysql.com authored
      into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
      35a0af31
  2. 04 May, 2007 11 commits
  3. 03 May, 2007 2 commits
  4. 02 May, 2007 14 commits
  5. 01 May, 2007 3 commits
  6. 30 Apr, 2007 1 commit