From 89df47fd528330f8287a287e9264c0f01fece6d8 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Tue, 15 Aug 2017 15:54:12 +0300 Subject: [PATCH] added test for drop temporary table --- .../0_stateless/00492_drop_temporary_table.reference | 1 + .../queries/0_stateless/00492_drop_temporary_table.sql | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00492_drop_temporary_table.reference create mode 100644 dbms/tests/queries/0_stateless/00492_drop_temporary_table.sql diff --git a/dbms/tests/queries/0_stateless/00492_drop_temporary_table.reference b/dbms/tests/queries/0_stateless/00492_drop_temporary_table.reference new file mode 100644 index 00000000000..573541ac970 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00492_drop_temporary_table.reference @@ -0,0 +1 @@ +0 diff --git a/dbms/tests/queries/0_stateless/00492_drop_temporary_table.sql b/dbms/tests/queries/0_stateless/00492_drop_temporary_table.sql new file mode 100644 index 00000000000..715c78d675c --- /dev/null +++ b/dbms/tests/queries/0_stateless/00492_drop_temporary_table.sql @@ -0,0 +1,8 @@ +drop table if exists temp_tab; +create temporary table temp_tab (number UInt64); +insert into temp_tab select number from system.numbers limit 1; +select number from temp_tab; +drop table temp_tab; +create temporary table temp_tab (number UInt64); +select number from temp_tab; +drop table temp_tab;