Files
ast-project/part1/bug-reproducers/1/README.md
T
2026-06-24 13:47:14 +02:00

695 B

Summary

We reran the query multiple time, but the output does not change. It is a logic bug because the output is different

Minimized query

CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (substring(-pi(), random() % if(1, NULL, 100)),'' || ('a'),1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE NOT c < 2.0 ORDER BY c;
ALTER TABLE T RENAME COLUMN c TO c_r522;
INSERT INTO T SELECT * FROM T;

SELECT COUNT(*) FROM T;

Actual output

0

Expectation

6

Flag