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;