ClickHouse/tests/queries/0_stateless/01070_exception_code_in_query_log_table.sql

8 lines
662 B
MySQL
Raw Normal View History

2020-01-22 15:32:38 +00:00
DROP TABLE IF EXISTS test_table_for_01070_exception_code_in_query_log_table;
SELECT * FROM test_table_for_01070_exception_code_in_query_log_table; -- { serverError 60 }
CREATE TABLE test_table_for_01070_exception_code_in_query_log_table (value UInt64) ENGINE=Memory();
SELECT * FROM test_table_for_01070_exception_code_in_query_log_table;
SYSTEM FLUSH LOGS;
2020-05-25 10:06:27 +00:00
SELECT exception_code FROM system.query_log WHERE query = 'SELECT * FROM test_table_for_01070_exception_code_in_query_log_table' AND event_date >= yesterday() AND event_time > now() - INTERVAL 5 MINUTE ORDER BY exception_code;
2020-01-22 15:32:38 +00:00
DROP TABLE IF EXISTS test_table_for_01070_exception_code_in_query_log_table;