Files
2026-06-24 13:47:14 +02:00

39 lines
695 B
Markdown

## Summary
<!--Explain briefly what goes wrong and explain why you believe this is a bug and not the intended behavior of SQLite (if it is not a crash).-->
We reran the query multiple time, but the output does not change. It is a logic bug because the output is different
## Minimized query
```sql
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
```sql
0
```
## Expectation
```sql
6
```
## Flag
```
```