should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
# name: test/fuzzer/sqlsmith/generate_series_overflow.test
# description: Fuzzer #26: overflow in generate series
# group: [sqlsmith]
statement ok
PRAGMA enable_verification
statement ok
CREATE TABLE tbl(bigint BIGINT);
statement ok
INSERT INTO tbl VALUES(-9223372036854775808);
statement ok
INSERT INTO tbl VALUES(9223372036854775807);
statement ok
INSERT INTO tbl VALUES(NULL);
statement error
SELECT generate_series(CAST(ref_0."bigint" AS BIGINT)) AS c1 FROM tbl AS ref_0
----
<REGEX>:Invalid Input Error.*Lists larger.*not supported.*
statement error
SELECT generate_series(-9223372036854775808, 9223372036854775807, 1) AS c1
----
<REGEX>:Invalid Input Error.*Lists larger.*not supported.*
query I
SELECT generate_series(9223372036854775805, 9223372036854775807, 1) AS c1
----
[9223372036854775805, 9223372036854775806, 9223372036854775807]
query I
SELECT generate_series(-9223372036854775806, -9223372036854775808, -1) AS c1
----
[-9223372036854775806, -9223372036854775807, -9223372036854775808]