ClickHouse/tests/queries/0_stateless/01435_lcm_overflow.sql

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

11 lines
356 B
MySQL
Raw Normal View History

2020-08-07 23:01:05 +00:00
SELECT lcm(15, 10);
SELECT lcm(-15, 10);
SELECT lcm(15, -10);
SELECT lcm(-15, -10);
-- Implementation specific result on overflow:
2020-08-08 02:02:36 +00:00
SELECT ignore(lcm(256, 9223372036854775807));
SELECT ignore(lcm(256, -9223372036854775807));
SELECT ignore(lcm(-256, 9223372036854775807)); -- { serverError DECIMAL_OVERFLOW }
2020-08-08 02:02:36 +00:00
SELECT ignore(lcm(-256, -9223372036854775807));