mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
27a5794795
Changelog: - Check against INT64_MIN/INT64_MAX - Check against std::numeric_limits<>::min/max - Move common code into separate header - GCDLCMImpl.h - Forbid floats UBsan report [1]. [1]: https://clickhouse-test-reports.s3.yandex.net/19466/cb30a02540a0f223df6668c5f88ff84aa666ff54/fuzzer_ubsan/report.html#fail1
14 lines
1016 B
Plaintext
14 lines
1016 B
Plaintext
-- { echo }
|
|
SELECT lcm(9223372036854775807, -9223372036854775808); -- { serverError 407 }
|
|
SELECT lcm(9223372036854775808, -9223372036854775807); -- { serverError 407 }
|
|
SELECT lcm(-9223372036854775808, 9223372036854775807); -- { serverError 407 }
|
|
SELECT lcm(-9223372036854775807, 9223372036854775808); -- { serverError 407 }
|
|
SELECT lcm(9223372036854775808, -1); -- { serverError 407 }
|
|
SELECT lcm(-170141183460469231731687303715884105728, -170141183460469231731687303715884105728); -- { serverError 48 }
|
|
SELECT lcm(toInt128(-170141183460469231731687303715884105728), toInt128(-170141183460469231731687303715884105728)); -- { serverError 407 }
|
|
SELECT lcm(toInt128(-170141183460469231731687303715884105720), toInt128(-170141183460469231731687303715884105720)); -- { serverError 407 }
|
|
SELECT lcm(toInt128('-170141183460469231731687303715884105720'), toInt128('-170141183460469231731687303715884105720'));
|
|
170141183460469231731687303715884105720
|
|
SELECT lcm(-9223372036854775806, -9223372036854775806);
|
|
9223372036854775806
|