ClickHouse/tests/queries/0_stateless/01531_query_log_query_comment.sql

21 lines
690 B
MySQL
Raw Normal View History

set log_queries=1;
set log_queries_min_type='QUERY_FINISH';
2021-03-29 11:39:27 +00:00
set enable_global_with_statement=0;
select /* test=01531, enable_global_with_statement=0 */ 2;
system flush logs;
2021-01-18 17:15:58 +00:00
select count() from system.query_log
2021-03-26 16:40:02 +00:00
where event_date >= yesterday()
2021-03-29 11:39:27 +00:00
and query like 'select /* test=01531, enable_global_with_statement=0 */ 2%'
2021-01-18 17:15:58 +00:00
and current_database = currentDatabase()
;
set enable_global_with_statement=1;
2021-03-29 11:39:27 +00:00
select /* test=01531, enable_global_with_statement=1 */ 2;
system flush logs;
2021-01-18 17:15:58 +00:00
select count() from system.query_log
2021-03-26 16:40:02 +00:00
where event_date >= yesterday()
2021-03-29 11:39:27 +00:00
and query like 'select /* test=01531, enable_global_with_statement=1 */ 2%'
2021-01-18 17:15:58 +00:00
and current_database = currentDatabase()
;