Update 01493_storage_set_persistency.sql

This commit is contained in:
alexey-milovidov 2020-09-19 19:39:24 +03:00 committed by GitHub
parent cd7354117c
commit a0ffdb1f45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ SELECT '----- Default Settings -----';
CREATE TABLE set (val UInt64) ENGINE = Set();
INSERT INTO set VALUES (1);
DETACH TABLE set;
ATTACH TABLE set (val UInt64) ENGINE = Set();
ATTACH TABLE set;
SELECT number FROM number WHERE number IN set LIMIT 1;
DROP TABLE set;
@ -17,7 +17,7 @@ SELECT '----- Settings persistent=1 -----';
CREATE TABLE set (val UInt64) ENGINE = Set() SETTINGS persistent=1;
INSERT INTO set VALUES (1);
DETACH TABLE set;
ATTACH TABLE set (val UInt64) ENGINE = Set() SETTINGS persistent=1;
ATTACH TABLE set;
SELECT number FROM number WHERE number IN set LIMIT 1;
DROP TABLE set;
@ -26,8 +26,8 @@ SELECT '----- Settings persistent=0 -----';
CREATE TABLE set (val UInt64) ENGINE = Set() SETTINGS persistent=0;
INSERT INTO set VALUES (1);
DETACH TABLE set;
ATTACH TABLE set (val UInt64) ENGINE = Set() SETTINGS persistent=0;
ATTACH TABLE set;
SELECT number FROM number WHERE number IN set LIMIT 1;
DROP TABLE set;
DROP TABLE number;
DROP TABLE number;