Closed Jax-YHH closed 3 months ago
How should I handle the insertion when the integer part exceeds the specified number of digits?
1 retain the maximum number of digits for the integer, and treat the remaining part as a decimal.
999999999
into decimal32(9,4)
, treat as 99999.9999
2 or just throw invalid operation warning and not insert it.
The current approach is to throw an exception and not perform any operation.
When the input data contains integers that exceed the bit range, the client does not handle them correctly, resulting in actual inserted data that is inconsistent with expectations. (in the Timeplusd-client, an error message will be prompted when act like this ) eg: insert
999999999
intodecimal32(9,4)
, result is131612.4912