From 5400a412db9bdba5fcfce0763090b4b2991075da Mon Sep 17 00:00:00 2001 From: feng lv Date: Mon, 5 Oct 2020 00:36:43 +0800 Subject: [PATCH] add test --- ...ltiversion_storage_for_storagememory.reference | 10 ++++++++++ ...507_multiversion_storage_for_storagememory.sql | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.reference create mode 100644 tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.sql diff --git a/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.reference b/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.reference new file mode 100644 index 00000000000..8b1acc12b63 --- /dev/null +++ b/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.reference @@ -0,0 +1,10 @@ +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 diff --git a/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.sql b/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.sql new file mode 100644 index 00000000000..fec9105cc6b --- /dev/null +++ b/tests/queries/0_stateless/01507_multiversion_storage_for_storagememory.sql @@ -0,0 +1,15 @@ +DROP TABLE IF EXISTS defaults; +CREATE TABLE defaults +( + n Int32 +)ENGINE = Memory(); + +INSERT INTO defaults SELECT * FROM numbers(10); + +SELECT * FROM defaults; + +TRUNCATE defaults; + +SELECT * FROM defaults; + +DROP TABLE defaults;