should be it
This commit is contained in:
26
external/duckdb/test/issues/rigger/test_538.test
vendored
Normal file
26
external/duckdb/test/issues/rigger/test_538.test
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# name: test/issues/rigger/test_538.test
|
||||
# description: Issue 538
|
||||
# group: [rigger]
|
||||
|
||||
statement ok
|
||||
PRAGMA enable_verification
|
||||
|
||||
# Incorrect result for predicate with shift on a BIGINT column
|
||||
statement ok
|
||||
CREATE TABLE t0(c0 BIGINT);
|
||||
|
||||
statement ok
|
||||
INSERT INTO t0(c0) VALUES (-1);
|
||||
|
||||
statement ok
|
||||
INSERT INTO t0(c0) VALUES (0);
|
||||
|
||||
statement error
|
||||
SELECT t0.c0 AND (t0.c0<<64) FROM t0;
|
||||
----
|
||||
<REGEX>:Out of Range Error.*left-shift negative number.*
|
||||
|
||||
statement error
|
||||
SELECT * FROM t0 WHERE t0.c0 AND (t0.c0<<64);
|
||||
----
|
||||
<REGEX>:Out of Range Error.*left-shift negative number.*
|
||||
Reference in New Issue
Block a user