should be it
This commit is contained in:
24
external/duckdb/test/fuzzer/sqlsmith/test_abs_overflow.test
vendored
Normal file
24
external/duckdb/test/fuzzer/sqlsmith/test_abs_overflow.test
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# name: test/fuzzer/sqlsmith/test_abs_overflow.test
|
||||
# description: Fuzzer #29: test abs overflow
|
||||
# group: [sqlsmith]
|
||||
|
||||
statement ok
|
||||
PRAGMA enable_verification
|
||||
|
||||
# test abs function on extremes
|
||||
|
||||
statement ok
|
||||
CREATE TABLE numerics AS SELECT tinyint, smallint, int, bigint, hugeint FROM test_all_types();
|
||||
|
||||
foreach type tinyint smallint int bigint hugeint
|
||||
|
||||
statement error
|
||||
SELECT abs(${type}) FROM numerics;
|
||||
----
|
||||
Overflow on abs
|
||||
|
||||
statement ok
|
||||
SELECT abs(${type}) FROM numerics WHERE ${type} > 0;
|
||||
|
||||
endloop
|
||||
|
||||
Reference in New Issue
Block a user