mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +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
11 lines
343 B
SQL
11 lines
343 B
SQL
SELECT lcm(15, 10);
|
|
SELECT lcm(-15, 10);
|
|
SELECT lcm(15, -10);
|
|
SELECT lcm(-15, -10);
|
|
|
|
-- Implementation specific result on overflow:
|
|
SELECT ignore(lcm(256, 9223372036854775807));
|
|
SELECT ignore(lcm(256, -9223372036854775807));
|
|
SELECT ignore(lcm(-256, 9223372036854775807)); -- { serverError 407 }
|
|
SELECT ignore(lcm(-256, -9223372036854775807));
|