decimal: fix encoding numbers with positive exponent.
When a number having a positive exponent is encoded, the internal decPackedFromNumber function returns a negative scale, which differs from the scale, returned by decimal_scale(). This leads to errors in decoding. Account for negative scale in decimal_pack() and decimal_unpack(). Follow-up #692
Loading
Please register or sign in to comment