Skip to content
  • Tor Didriksen's avatar
    177e3d8f
    Bug#23013359 FUNCTION FLOOR(CEIL()) TRUNCATES BIGINT UNSIGNED · 177e3d8f
    Tor Didriksen authored
    Followup patch for values larger than ULLONG_MAX,
    which are converted to decimal.
    
    Problem: 'max_length' was set to 17, which means nested calls to integer
    functions got a 'hybrid_type' of INT_RESULT rather than DECIMAL_RESULT
    
    Fix: don't set max_length to float_length() when we are in DECIMAL context.
    177e3d8f
    Bug#23013359 FUNCTION FLOOR(CEIL()) TRUNCATES BIGINT UNSIGNED
    Tor Didriksen authored
    Followup patch for values larger than ULLONG_MAX,
    which are converted to decimal.
    
    Problem: 'max_length' was set to 17, which means nested calls to integer
    functions got a 'hybrid_type' of INT_RESULT rather than DECIMAL_RESULT
    
    Fix: don't set max_length to float_length() when we are in DECIMAL context.
Loading