ClickHouse/tests/queries/0_stateless/02478_factorial.sql
2022-12-13 12:48:14 +01:00

8 lines
226 B
SQL

select factorial(-1) = 1;
select factorial(0) = 1;
select factorial(10) = 3628800;
select factorial(100); -- { serverError 36 }
select factorial('100'); -- { serverError 43 }
select factorial(100.1234); -- { serverError 43 }