Closed
Description
Issue
See this comment:
https://github.com/go-sql-driver/mysql/pull/1118/files#r433293822
MySQL rounds the received datetime. (ref). So the time may be rounded twice.
Example:
- Assume time = 1.444_999_5, and the column type has 2 digit fraction (e.g. TIME(2), DATETIME(2), or TIMESTAMP(2))
- The driver rounds the time to 1.445_000
- MySQL rounds the time to 1.45
Proposal
I just want to drop the rounding behavior in the driver.