should be it
This commit is contained in:
29
external/duckdb/test/issues/rigger/test_517.test
vendored
Normal file
29
external/duckdb/test/issues/rigger/test_517.test
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# name: test/issues/rigger/test_517.test
|
||||
# description: Issue 517
|
||||
# group: [rigger]
|
||||
|
||||
statement ok
|
||||
PRAGMA enable_verification
|
||||
|
||||
# Query with an AND predicate, NOT and comparison yields an incorrect result
|
||||
statement ok
|
||||
CREATE TABLE t0(c0 INT);
|
||||
|
||||
statement ok
|
||||
CREATE TABLE t1(c0 INT);
|
||||
|
||||
statement ok
|
||||
INSERT INTO t0(c0) VALUES (0);
|
||||
|
||||
statement ok
|
||||
INSERT INTO t1(c0) VALUES (0);
|
||||
|
||||
query II
|
||||
SELECT * FROM t1, t0 WHERE NOT ((t1.c0 AND t0.c0) < 0);
|
||||
----
|
||||
0 0
|
||||
|
||||
query II
|
||||
SELECT * FROM t1, t0 WHERE ((t1.c0 AND t0.c0) < 0);
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user