mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
Add a test
This commit is contained in:
parent
cfd47b2980
commit
a47b0190fd
3
tests/queries/0_stateless/01670_log_comment.reference
Normal file
3
tests/queries/0_stateless/01670_log_comment.reference
Normal file
@ -0,0 +1,3 @@
|
||||
1
|
||||
QueryStart SELECT 1;
|
||||
QueryFinish SELECT 1;
|
5
tests/queries/0_stateless/01670_log_comment.sql
Normal file
5
tests/queries/0_stateless/01670_log_comment.sql
Normal file
@ -0,0 +1,5 @@
|
||||
SET log_comment = 'log_comment test', log_queries = 1;
|
||||
SELECT 1;
|
||||
SYSTEM FLUSH LOGS;
|
||||
SELECT type, query FROM system.query_log WHERE log_comment = 'log_comment test' AND event_date >= yesterday() AND type = 1 ORDER BY event_time DESC LIMIT 1;
|
||||
SELECT type, query FROM system.query_log WHERE log_comment = 'log_comment test' AND event_date >= yesterday() AND type = 2 ORDER BY event_time DESC LIMIT 1;
|
Loading…
Reference in New Issue
Block a user