ClickHouse/tests/queries/0_stateless/02494_query_cache_exception_handling.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
409 B
MySQL
Raw Normal View History

-- Tags: no-parallel
-- Tag no-parallel: Messes with internal cache
SET allow_experimental_query_cache = true;
SYSTEM DROP QUERY CACHE;
-- If an exception is thrown during query execution, no entry must be created in the query cache
SELECT throwIf(1) SETTINGS use_query_cache = true; -- { serverError FUNCTION_THROW_IF_VALUE_IS_NON_ZERO }
SELECT COUNT(*) FROM system.query_cache;
SYSTEM DROP QUERY CACHE;