ClickHouse/tests/queries/0_stateless/01360_division_overflow.sql

6 lines
308 B
MySQL
Raw Normal View History

2020-07-05 00:28:48 +00:00
select intDiv(materialize(toInt32(1)), 0x100000000);
select intDiv(materialize(toInt32(1)), -0x100000000);
select intDiv(materialize(toInt32(1)), -9223372036854775808);
select materialize(toInt32(1)) % -9223372036854775808;
select value % -9223372036854775808 from (select toInt32(arrayJoin([3, 5])) value);