Files
greptimedb/tests/compatibility/cases/mysql_timestamp_precision/verify.sql
T
LFC e406dbeeef fix(mysql)!: cap timestamp output at microsecond precision [Backport release/v1.3] (#9838)
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>
2026-10-23 09:40:17 +08:00

6 lines
158 B
SQL

-- SQLNESS PROTOCOL MYSQL
SELECT * FROM timestamps;
-- SQLNESS PROTOCOL MYSQL
SELECT ts::BIGINT AS epoch_ns, ts::STRING AS timestamp_string FROM timestamps;