ClickHouse/tests/queries/0_stateless/02478_factorial.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
281 B
MySQL
Raw Normal View History

2022-11-10 13:12:55 +00:00
select factorial(-1) = 1;
select factorial(0) = 1;
select factorial(10) = 3628800;
select factorial(100); -- { serverError BAD_ARGUMENTS }
select factorial('100'); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
select factorial(100.1234); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }