1. 14 Jun, 2006 1 commit
    • bar@mysql.com's avatar
      Bug#8663 cant use bgint unsigned as input to cast · a481a352
      bar@mysql.com authored
      Problem: cast to unsigned limited result to 
      max signed bigint 9223372036854775808,
      instead of max unsigned bigint 18446744073709551615.
      
      Fix: don't use args[0]->val_int() when casting from
      a floating point number, use val() instead, with range checkings,
      special to unsigned data type.
      
      item_func.cc:
        Special handling of cast from REAL_RESULT
        to unsigned int: we cannot execute args[0]->val_int()
        because it cuts max allowed value to LONGLONG_INT,
        instead of ULONGLONG_INT required.
      count_distinct3.test:
        Getting rid of "Data truncated; out of range ..." warnings.
      cast.test, cast.result:
        Adding test case.
      ps.result:
        Fixing that cast from 6570515219.6535 
        to unsigned didn't round to 6570515220,
        and returned 6570515219 instead.
      a481a352
  2. 06 Jun, 2006 1 commit
  3. 01 Jun, 2006 4 commits
  4. 31 May, 2006 1 commit
  5. 30 May, 2006 3 commits
  6. 29 May, 2006 2 commits
  7. 28 May, 2006 3 commits
  8. 27 May, 2006 1 commit
  9. 25 May, 2006 2 commits
  10. 24 May, 2006 6 commits
  11. 23 May, 2006 3 commits
  12. 22 May, 2006 2 commits
  13. 21 May, 2006 1 commit
  14. 20 May, 2006 3 commits
  15. 19 May, 2006 4 commits
  16. 17 May, 2006 2 commits
  17. 16 May, 2006 1 commit