mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-23 12:22:35 +00:00
* 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 Signed-off-by: luofucong <luofc@foxmail.com> * chore: ignore local output directory Signed-off-by: luofucong <luofc@foxmail.com> --------- Signed-off-by: luofucong <luofc@foxmail.com>
6 lines
158 B
SQL
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;
|