statement ok
drop table if exists large_numbers

statement ok
CREATE TABLE large_numbers (a TINYINT PRIMARY KEY)

statement error
INSERT INTO large_numbers VALUES (9223372036854775807),(1)

query I
SELECT sum(a) FROM large_numbers
----
null

statement ok
DELETE FROM large_numbers

statement error
INSERT INTO large_numbers VALUES (-9223372036854775808),(-1)

query I
SELECT sum(a) FROM large_numbers
----
null