2020-10-20 18:10:24 +00:00
|
|
|
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;
|
2020-10-20 18:10:24 +00:00
|
|
|
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()
|
|
|
|
;
|
2020-10-20 18:10:24 +00:00
|
|
|
|
|
|
|
set enable_global_with_statement=1;
|
2021-03-29 11:39:27 +00:00
|
|
|
select /* test=01531, enable_global_with_statement=1 */ 2;
|
2020-10-20 18:10:24 +00:00
|
|
|
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()
|
|
|
|
;
|