ClickHouse/tests/queries/0_stateless/02716_drop_if_empty.reference
2023-09-21 09:20:18 -04:00

11 lines
468 B
Plaintext

-- { echoOn }
DROP TABLE IF EMPTY data_02716_2;
DROP TABLE IF EMPTY data_02716_1; -- { serverError TABLE_NOT_EMPTY }
TRUNCATE TABLE data_02716_1;
DROP TABLE IF EMPTY data_02716_1;
DROP DATABASE IF EMPTY {CLICKHOUSE_DATABASE_1:Identifier}; -- { serverError NOT_IMPLEMENTED }
SELECT count() FROM system.tables WHERE database = {CLICKHOUSE_DATABASE_1:String};
1
SELECT count() FROM system.tables WHERE database = 'default' AND name IN ('data_02716_1', 'data_02716_2');
0