tests query_start_time_microseconds for system.query_thread_log

This commit is contained in:
bharatnc 2020-09-04 09:41:12 -07:00
parent f2848d5820
commit 0c1a65ddf2
3 changed files with 8 additions and 2 deletions

View File

@ -1,2 +0,0 @@
01461_query_log_query_start_time_milliseconds_test
ok

View File

@ -0,0 +1,4 @@
01461_query_log_query_start_time_milliseconds_test
ok
01461_query_thread_log_query_start_time_milliseconds_test
ok

View File

@ -3,3 +3,7 @@ set log_queries = 1;
select '01461_query_log_query_start_time_milliseconds_test';
system flush logs;
SELECT If((select count(query_start_time_microseconds) from system.query_log WHERE query LIKE '%01461_query_log_query_start_time_milliseconds_test%' AND query NOT LIKE '%system.query_log%') > 0, 'ok', 'fail');
select '01461_query_thread_log_query_start_time_milliseconds_test';
system flush logs;
SELECT If((select count(query_start_time_microseconds) from system.query_log WHERE query LIKE '%01461_query_thread_log_query_start_time_milliseconds_test%' AND query NOT LIKE '%system.query_log%') > 0, 'ok', 'fail');