Changeset: 5b1dc139c5c3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5b1dc139c5c3
Modified Files:
sql/test/BugTracker-2026/Tests/7883-right-join-crash.test
Branch: Dec2025
Log Message:
issue #7885 crash was same issue as issue #7783
diffs (71 lines):
diff --git a/sql/test/BugTracker-2026/Tests/7883-right-join-crash.test
b/sql/test/BugTracker-2026/Tests/7883-right-join-crash.test
--- a/sql/test/BugTracker-2026/Tests/7883-right-join-crash.test
+++ b/sql/test/BugTracker-2026/Tests/7883-right-join-crash.test
@@ -94,3 +94,67 @@ from
and (true))) as subq_1
where false
----
+
+statement ok
+drop table users
+
+statement ok
+drop table posts
+
+statement ok
+drop table orders
+
+statement ok
+CREATE TABLE users (
+ id INT,
+ username VARCHAR(100),
+ email VARCHAR(255),
+ age INT,
+ status VARCHAR(20),
+ created_at TIMESTAMP,
+ score DOUBLE
+)
+
+statement ok
+CREATE TABLE orders (
+ id INT,
+ user_id INT,
+ amount DOUBLE,
+ status VARCHAR(20),
+ created_at TIMESTAMP
+)
+
+statement ok rowcount 5
+INSERT INTO users VALUES
+(1, 'alice', '[email protected]', 20, 'active', '2022-01-01 10:00:00', 88.5),
+(2, 'bob', '[email protected]', 30, 'active', '2022-01-02 11:00:00', 92.3),
+(3, 'carol', NULL, NULL, 'banned','2022-01-03 12:00:00', NULL),
+(4, 'dave', '[email protected]', 45, 'active', '2022-01-04 13:00:00', 65.2),
+(5, NULL, '[email protected]', 18, 'inactive','2022-01-05 14:00:00', 70.0)
+
+statement ok rowcount 5
+INSERT INTO orders VALUES
+(1, 1, 100.00, 'paid', '2022-02-01 09:00:00'),
+(2, 1, 200.50, 'shipped', '2022-02-02 10:00:00'),
+(3, 2, NULL, 'failed', '2022-02-03 11:00:00'),
+(4, 3, 50.00, 'paid', '2022-02-04 12:00:00'),
+(5, 5, 999.99, 'paid', '2022-02-05 13:00:00')
+
+query I
+select count(*)
+from
+ (select 1
+ from
+ orders as ref_0
+ where true) as subq_0
+ right join orders as ref_1
+ right join users as ref_2
+ inner join orders as ref_3
+ on (true)
+ on (false)
+ on (true )
+where ((true)
+ and (55.85 != 55.45))
+ or (true AND true);
+----
+125
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]