PR #181 which addressed the issue #180 didn't include an error when timestamp fractional second has positive exponent and non zero coefficient .
// check if the scale is negative and coefficient is zero then set exponent value to 0
// otherwise set exponent value as per the scale value
if d.scale < 0 && nsec == 0 {
exponent = uint8(0) // if nsec != 0 && d.scale < 0 then RETURN AN ERROR
} else {
exponent = uint8(d.scale)
}
Also, there are no tests in the test harness for timestamp fractional second with positive exponent and non zero coefficient We should add more tests for timestamp fractional seconds.
PR #181 which addressed the issue #180 didn't include an error when timestamp fractional second has positive exponent and non zero coefficient .
Also, there are no tests in the test harness for timestamp fractional second with positive exponent and non zero coefficient We should add more tests for timestamp fractional seconds.