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

13 lines
610 B
MySQL
Raw Normal View History

set log_queries=1;
set log_queries_min_type='QUERY_FINISH';
set enable_global_with_statement=1;
select /* test=01531, enable_global_with_statement=0 */ 2;
system flush logs;
2021-01-14 22:39:43 +00:00
select count() from system.query_log where event_time >= now() - interval 5 minute and query like '%select /* test=01531, enable_global_with_statement=0 */ 2%';
set enable_global_with_statement=1;
select /* test=01531 enable_global_with_statement=1 */ 2;
system flush logs;
2021-01-14 22:39:43 +00:00
select count() from system.query_log where event_time >= now() - interval 5 minute and query like '%select /* test=01531 enable_global_with_statement=1 */ 2%';