should be it
This commit is contained in:
20
external/duckdb/test/fuzzer/sqlsmith/makedate_overflow.test
vendored
Normal file
20
external/duckdb/test/fuzzer/sqlsmith/makedate_overflow.test
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# name: test/fuzzer/sqlsmith/makedate_overflow.test
|
||||
# description: Trap overflow from INT64 => INT32
|
||||
# group: [sqlsmith]
|
||||
|
||||
statement ok
|
||||
create table all_types as
|
||||
select * exclude(small_enum, medium_enum, large_enum)
|
||||
from test_all_types();
|
||||
|
||||
statement error
|
||||
SELECT make_timestamp("bigint", "bigint", "bigint", "bigint", "bigint", "double")
|
||||
FROM all_types;
|
||||
----
|
||||
can't be cast because the value is out of range for the destination type INT32
|
||||
|
||||
statement error
|
||||
SELECT make_date(c1)
|
||||
FROM test_vector_types(CAST(NULL AS STRUCT("year" BIGINT, "month" BIGINT, "day" BIGINT))) AS test_vector_types(c1);
|
||||
----
|
||||
the value is out of range for the destination type INT32
|
||||
Reference in New Issue
Block a user