dbms: added test [#METR-15790].

This commit is contained in:
Alexey Milovidov 2015-04-02 06:32:39 +03:00
parent 7b3ab80648
commit 694939cee8
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1 @@
2009-02-01 1234567890

View File

@ -0,0 +1,7 @@
DROP TABLE IF EXISTS test.default;
CREATE TABLE test.default (d Date DEFAULT toDate(t), t DateTime) ENGINE = MergeTree(d, t, 8192);
INSERT INTO test.default (t) VALUES ('1234567890');
SELECT toStartOfMonth(d), toUInt32(t) FROM test.default;
DROP TABLE test.default;