mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-25 05:12:27 +00:00
fix(mysql): cap timestamp output at microsecond precision (#9831)
* fix(mysql): cap timestamp output at microsecond precision
Truncate MySQL text timestamp results to microseconds while preserving the existing second and millisecond formatting. Keep stored nanoseconds and explicit integer/string representations unchanged.
Fixes #9828
* chore: ignore local output directory
---------
(cherry picked from commit 5af1e3301e)
Signed-off-by: luofucong <luofc@foxmail.com>
4 lines
120 B
SQL
4 lines
120 B
SQL
CREATE TABLE timestamps (ts TIMESTAMP(9) TIME INDEX);
|
|
|
|
INSERT INTO timestamps VALUES ('2026-10-21 08:55:35.718870300');
|