ClickHouse/dbms/tests/queries/0_stateless/01072_drop_temporary_table_with_same_name.sql
Vitaly Baranov 8492b02511 Add test.
2020-01-31 02:37:40 +03:00

16 lines
538 B
SQL

DROP TEMPORARY TABLE IF EXISTS table_to_drop;
DROP TABLE IF EXISTS table_to_drop;
CREATE TABLE table_to_drop(x Int8) ENGINE=Log;
CREATE TEMPORARY TABLE table_to_drop(x Int8);
DROP TEMPORARY TABLE table_to_drop;
DROP TEMPORARY TABLE table_to_drop; -- { serverError 60 }
DROP TABLE table_to_drop;
DROP TABLE table_to_drop; -- { serverError 60 }
CREATE TABLE table_to_drop(x Int8) ENGINE=Log;
CREATE TEMPORARY TABLE table_to_drop(x Int8);
DROP TABLE table_to_drop;
DROP TABLE table_to_drop;
DROP TABLE table_to_drop; -- { serverError 60 }