This commit is contained in:
Alexander Kuzmenkov 2021-03-29 14:39:27 +03:00
parent 19d4be7c01
commit 605ce6d5fd
2 changed files with 5 additions and 4 deletions

View File

@ -16,6 +16,7 @@ select count() from system.query_log where current_database = currentDatabase()
set max_rows_to_read='100K'; set max_rows_to_read='100K';
set log_queries_min_type='EXCEPTION_WHILE_PROCESSING'; set log_queries_min_type='EXCEPTION_WHILE_PROCESSING';
select '01231_log_queries_min_type/EXCEPTION_WHILE_PROCESSING', max(number) from system.numbers limit 1e6; -- { serverError 158; } select '01231_log_queries_min_type/EXCEPTION_WHILE_PROCESSING', max(number) from system.numbers limit 1e6; -- { serverError 158; }
set max_rows_to_read=0;
system flush logs; system flush logs;
select count() from system.query_log where current_database = currentDatabase() select count() from system.query_log where current_database = currentDatabase()
and query like 'select \'01231_log_queries_min_type/EXCEPTION_WHILE_PROCESSING%' and query like 'select \'01231_log_queries_min_type/EXCEPTION_WHILE_PROCESSING%'

View File

@ -1,20 +1,20 @@
set log_queries=1; set log_queries=1;
set log_queries_min_type='QUERY_FINISH'; set log_queries_min_type='QUERY_FINISH';
set enable_global_with_statement=1; set enable_global_with_statement=0;
select /* test=01531, enable_global_with_statement=0 */ 2; select /* test=01531, enable_global_with_statement=0 */ 2;
system flush logs; system flush logs;
select count() from system.query_log select count() from system.query_log
where event_date >= yesterday() where event_date >= yesterday()
and query like '%select /* test=01531, enable_global_with_statement=0 */ 2%' and query like 'select /* test=01531, enable_global_with_statement=0 */ 2%'
and current_database = currentDatabase() and current_database = currentDatabase()
; ;
set enable_global_with_statement=1; set enable_global_with_statement=1;
select /* test=01531 enable_global_with_statement=1 */ 2; select /* test=01531, enable_global_with_statement=1 */ 2;
system flush logs; system flush logs;
select count() from system.query_log select count() from system.query_log
where event_date >= yesterday() where event_date >= yesterday()
and query like '%select /* test=01531 enable_global_with_statement=1 */ 2%' and query like 'select /* test=01531, enable_global_with_statement=1 */ 2%'
and current_database = currentDatabase() and current_database = currentDatabase()
; ;