should be it
This commit is contained in:
23
external/duckdb/test/issues/rigger/test_588.test
vendored
Normal file
23
external/duckdb/test/issues/rigger/test_588.test
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# name: test/issues/rigger/test_588.test
|
||||
# description: Issue 588
|
||||
# group: [rigger]
|
||||
|
||||
statement ok
|
||||
SET default_null_order='nulls_first';
|
||||
|
||||
statement ok
|
||||
PRAGMA enable_verification
|
||||
|
||||
# Query with complex ORDER BY causes an incorrect rowid value
|
||||
statement ok
|
||||
CREATE TABLE t0(c0 INT);
|
||||
|
||||
statement ok
|
||||
INSERT INTO t0 VALUES (1), (0), (1);
|
||||
|
||||
query I
|
||||
SELECT t0.rowid FROM t0 WHERE t0.rowid ORDER BY CASE ((t0.c0) ::BOOL) WHEN 1 THEN t0.rowid END;
|
||||
----
|
||||
1
|
||||
2
|
||||
|
||||
Reference in New Issue
Block a user