• Sergei Golubchik's avatar
    MDEV-736 LP:1004615 - Unexpected warnings "Encountered illegal value '' when... · 13ba0dd2
    Sergei Golubchik authored
    MDEV-736 LP:1004615 - Unexpected warnings "Encountered illegal value '' when converting to DECIMAL" on a query with aggregate functions and GROUP BY
    
    fix: don't call field->val_decimal() if the field->is_null()
    because the buffer at field->ptr might not hold a valid decimal value
    
    sql/item_sum.cc:
      do not call field->val_decimal() if the field->is_null()
    storage/maria/ma_blockrec.c:
      cleanup
    storage/maria/ma_rrnd.c:
      cleanup
    strings/decimal.c:
      typo
    13ba0dd2
decimal.c 86.5 KB