提交 4445ec63 authored 作者: Stéphane Eintrazi's avatar Stéphane Eintrazi

add test on other possible values

上级 d5f3df0d
......@@ -45,3 +45,78 @@ select DATE_TRUNC('day', '2015-05-29 15:14:13');
select DATE_TRUNC('DAY', '2015-05-29 15:14:13');
>> 2015-05-29 00:00:00
SELECT DATE_TRUNC('---', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('microseconds', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('MICROSECONDS', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('milliseconds', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('MILLISECONDS', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('second', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('SECOND', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('minute', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('MINUTE', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('hour', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('HOUR', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('week', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('WEEK', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('month', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('MONTH', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('quarter', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('QUARTER', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('year', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('YEAR', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('decade', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('DECADE', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('century', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('CENTURY', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('millennium', '2015-05-29 15:14:13');
> exception
SELECT DATE_TRUNC('MILLENNIUM', '2015-05-29 15:14:13');
> exception
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论