An error occurred fetching the project authors.
  1. 18 May, 2009 1 commit
    • Gleb Shchepa's avatar
      Bug #44768: SIGFPE crash when selecting rand from a view containing null · 9cc4cb0e
      Gleb Shchepa authored
      The RAND(N) function where the N is a field of "constant" table
      (table of single row) failed with a SIGFPE.
      
      Evaluation of RAND(N) rely on constant status of its argument.
      Current server "seeded" random value for each constant argument
      only once, in the Item_func_rand::fix_fields method.
      Then the server skipped a call to seed_random() in the
      Item_func_rand::val_real method for such constant arguments.
      
      However, non-constant state of an argument may be changed
      after the call to fix_fields, if an argument is a field of
      "constant" table. Thus, pre-initialization of random value
      in the fix_fields method is too early.
      
      
      Initialization of random value by seed_random() has been
      removed from Item_func_rand::fix_fields method.
      The Item_func_rand::val_real method has been modified to
      call seed_random() on the first evaluation of this method
      if an argument is a function.
      9cc4cb0e
  2. 23 Feb, 2009 1 commit
    • Alexey Kopytov's avatar
      Fix for bug #15936: "round" differs on Windows to Unix · cebaf077
      Alexey Kopytov authored
      Both of our own implementations of rint(3) were inconsistent with the
      most common behavior of rint() on those platforms that have it: round
      to nearest, break ties by rounding to nearest even.
      
      Fixed by leaving just one implementation of rint() in our source tree,
      and changing its behavior to match the most common native
      implementations on other platforms.
      cebaf077
  3. 19 Feb, 2008 1 commit
  4. 01 Oct, 2007 1 commit
  5. 28 Sep, 2007 1 commit
    • gkodinov/kgeorge@macbook.gmz's avatar
      Bug #30587: mysql crashes when trying to group by TIME div NUMBER · aa2d545d
      gkodinov/kgeorge@macbook.gmz authored
      When calculating the result length of an integer DIV function 
      the number of decimals was used without checking the result type
      first. Thus an uninitialized number of decimals was used for some 
      types. This caused an excessive amount of memory to be allocated 
      for the field's buffer and crashed the server.
      
       
      Fixed by using the number of decimals only for data types that 
      can have decimals and thus have valid decimals number.
      aa2d545d
  6. 28 Apr, 2007 1 commit
    • kaa@polly.local's avatar
      Fix for bug #24912 "problems with bigint in abs() ceiling() round() truncate()... · 050c6723
      kaa@polly.local authored
      Fix for bug #24912 "problems with bigint in abs() ceiling() round() truncate() mod()" and a number of related problems:
      
      - unsigned flag was not handled correctly for a number of mathematical funcions, which led to incorrect results
      - passing large values as the number of decimals to ROUND() resulted in incorrect results and even server crashes in some cases
      - reverted the fix and the testcase for bug #10083 as it violates the manual
      - fixed some testcases which relied on broken ROUND() behavior
      050c6723
  7. 23 Jan, 2007 1 commit
    • gkodinov/kgeorge@macbook.gmz's avatar
      Bug #6172: RAND(a) should only accept constant values as arguments · 450e9b6b
      gkodinov/kgeorge@macbook.gmz authored
       RAND() must accept scalar expressions regardless of their kind.
       That includes both constant expressions and expressions that 
       depend on column values.
       When the expression is constant the random seed can be initialized
       at compile time.
       However when the expression is not constant the random seed must be
       initialized at each invocation (while it still can be allocated at
       compile time).
       Implemented the above rules by extending Item_func_rand::val_real()
       to initialize the random seed at the correct place.
      450e9b6b
  8. 02 Nov, 2006 1 commit
  9. 06 Mar, 2006 1 commit
  10. 07 Feb, 2006 1 commit
    • gunnar@mysql.com.'s avatar
      item_func.cc: · 001224c0
      gunnar@mysql.com. authored
        fix for bug#8461
      
        BUG 8461 - TRUNCATE returns incorrect result if 2nd argument is negative
        Reason: Both TRUNCATE/ROUND converts INTEGERS to DOUBLE and back to INTEGERS
        Changed the integer routine to work on integers only.
        This bug affects 4.1, 5.0 and 5.1
        Fixing in 4.1 will need to change the routine to handle different types individually.
        5.0 did had different routines for different types already just the INTEGER routine was bad.
      001224c0
  11. 19 Dec, 2005 1 commit
  12. 18 Oct, 2005 1 commit
  13. 17 Oct, 2005 1 commit
  14. 06 Sep, 2005 1 commit
  15. 28 Jul, 2005 1 commit
  16. 23 Jun, 2005 1 commit
  17. 15 Jun, 2005 1 commit
  18. 09 Jun, 2005 1 commit
  19. 08 Jun, 2005 1 commit
  20. 19 May, 2005 1 commit
  21. 27 Apr, 2005 1 commit
  22. 19 Apr, 2005 1 commit
  23. 20 Dec, 2004 1 commit
  24. 11 Aug, 2004 1 commit
  25. 19 Mar, 2004 1 commit
  26. 04 Mar, 2004 1 commit
  27. 13 Jan, 2004 1 commit
  28. 30 Oct, 2003 1 commit
  29. 03 Dec, 2002 1 commit
  30. 17 Jul, 2002 1 commit
  31. 31 May, 2002 1 commit
  32. 07 Jan, 2001 1 commit
  33. 28 Dec, 2000 1 commit