mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-26 01:40:36 +00:00
chore: sqlness redact time properly (#7543)
chore Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
CREATE TABLE ngx_access_log (
|
||||
client STRING,
|
||||
country STRING,
|
||||
access_time TIMESTAMP TIME INDEX
|
||||
access_time TIMESTAMP(9) TIME INDEX
|
||||
);
|
||||
|
||||
Affected Rows: 0
|
||||
@@ -24,7 +24,7 @@ VALUES
|
||||
Affected Rows: 10
|
||||
|
||||
-- should not fail with mismatch timezone
|
||||
-- SQLNESS REPLACE \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{9}Z NOW
|
||||
-- SQLNESS REPLACE \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z NOW
|
||||
SELECT
|
||||
now()
|
||||
FROM
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
CREATE TABLE ngx_access_log (
|
||||
client STRING,
|
||||
country STRING,
|
||||
access_time TIMESTAMP TIME INDEX
|
||||
access_time TIMESTAMP(9) TIME INDEX
|
||||
);
|
||||
|
||||
/* insert some data */
|
||||
@@ -21,7 +21,7 @@ VALUES
|
||||
("client10", "KR", "2022-01-01 00:00:09");
|
||||
|
||||
-- should not fail with mismatch timezone
|
||||
-- SQLNESS REPLACE \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{9}Z NOW
|
||||
-- SQLNESS REPLACE \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z NOW
|
||||
SELECT
|
||||
now()
|
||||
FROM
|
||||
|
||||
Reference in New Issue
Block a user