An error occurred fetching the project authors.
  1. 06 Jun, 2006 1 commit
    • evgen@moonbone.local's avatar
      Fixed bug#15962: CONCAT() in UNION may lead to a data trucation. · d027dd7c
      evgen@moonbone.local authored
      To calculate its max_length the CONCAT() function is simply sums max_lengths
      of its arguments but when the collation of an argument differs from the 
      collation of the CONCAT() max_length will be wrong. This may lead to a data
      truncation when a tmp table is used, in UNIONS for example.
      
      The Item_func_concat::fix_length_and_dec() function now recalculates the 
      max_length of an argument when the mbmaxlen of the argument differs from the
      mbmaxlen of the CONCAT().
      d027dd7c
  2. 28 Jul, 2005 1 commit
  3. 02 Jan, 2005 1 commit
  4. 30 Dec, 2004 1 commit
  5. 17 Dec, 2004 1 commit
    • sergefp@mysql.com's avatar
      Fix for BUG#6825: When calculating Item_func_neg::max_length, add 1 for '-'. · da332aca
      sergefp@mysql.com authored
      For numeric constants we only need to add, since the parser doesn't produce 
      negative numbers. 
      For strings we only add (we actually could substract 1 if given string is a constant 
      and it has '-number' form but we're not doing that because 
       * we set max_length bigger then necessary in other cases as well.  
       * the current solution is simpler and safer (bigger max_length is better then cutting out)
      da332aca
  6. 15 Sep, 2004 1 commit
  7. 05 Jan, 2003 1 commit
  8. 17 May, 2002 1 commit