Files
ast-project/part1/results/1/bug_0c07ea67-8b72-4a7d-a85a-32a893bf219e_logic.md
T
2026-06-24 13:47:14 +02:00

39 lines
815 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).-->**No review yet**
## Minimized query
```sql
PRAGMA max_page_count;
PRAGMA case_sensitive_like = OFF;
PRAGMA writable_schema = NO;
.quit
DROP TABLE IF EXISTS t1;
CREATE TABLE t1(a int, b int);
INSERT INTO t1 VALUES(1,2),(1,18),(2,19);
SELECT x, y FROM (SELECT 98 AS x, 99 AS y UNION SELECT a AS x, sum(b) AS y FROM t1 GROUP BY a) AS w WHERE y>=20 ORDER BY +x;
SELECT x, y FROM (SELECT a AS x, sum(b) AS y FROM t1 GROUP BY a UNION SELECT 98 AS x, 99 AS y) AS w WHERE y>=20 ORDER BY +x;
DROP VIEW IF EXISTS t1;
INSERT INTO t1 VALUES (NULL, NULL);
```
## Actual output
```sql
1073741823
```
## Expectation
```sql
4294967294
```
## Flag
```
-noheader
```