2021-01-24 18:28:12 +00:00
|
|
|
-- { echo }
|
2024-05-30 12:27:25 +00:00
|
|
|
SELECT lcm(9223372036854775807, -9223372036854775808); -- { serverError DECIMAL_OVERFLOW }
|
|
|
|
SELECT lcm(9223372036854775808, -9223372036854775807); -- { serverError DECIMAL_OVERFLOW }
|
|
|
|
SELECT lcm(-9223372036854775808, 9223372036854775807); -- { serverError DECIMAL_OVERFLOW }
|
|
|
|
SELECT lcm(-9223372036854775807, 9223372036854775808); -- { serverError DECIMAL_OVERFLOW }
|
|
|
|
SELECT lcm(9223372036854775808, -1); -- { serverError DECIMAL_OVERFLOW }
|
|
|
|
SELECT lcm(-170141183460469231731687303715884105728, -170141183460469231731687303715884105728); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
2021-05-08 00:38:56 +00:00
|
|
|
SELECT lcm(toInt128(-170141183460469231731687303715884105728), toInt128(-170141183460469231731687303715884105728));
|
|
|
|
170141183460469231722463931679029329921
|
|
|
|
SELECT lcm(toInt128(-170141183460469231731687303715884105720), toInt128(-170141183460469231731687303715884105720));
|
|
|
|
170141183460469231722463931679029329921
|
2021-01-24 18:28:12 +00:00
|
|
|
SELECT lcm(toInt128('-170141183460469231731687303715884105720'), toInt128('-170141183460469231731687303715884105720'));
|
|
|
|
170141183460469231731687303715884105720
|
|
|
|
SELECT lcm(-9223372036854775806, -9223372036854775806);
|
|
|
|
9223372036854775806
|