Files
ast-project/part1/results/3/bug_15a873e5-29d3-4a21-9cf8-c45ac32cb4f8_logic.md
T
2026-06-24 13:47:14 +02:00

71 lines
1.7 KiB
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
.limit
BEGIN EXCLUSIVE TRANSACTION;
PRAGMA case_sensitive_like = 0;
PRAGMA encoding = 'UTF-8';
PRAGMA case_sensitive_like = TRUE;
.progress
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(99);
SELECT sum((SELECT 1 FROM (SELECT 2 WHERE x IS NULL) WHERE 0)) FROM t1;
COMMIT TRANSACTION;
```
## Actual output
```sql
length 1000000000
sql_length 1000000000
column 2000
expr_depth 1000
compound_select 500
vdbe_op 250000000
function_arg 127
attached 10
like_pattern_length 50000
variable_number 32766
trigger_depth 1000
worker_threads 0
+---------------------------------------------------------+
| sum((SELECT 1 FROM (SELECT 2 WHERE x IS NULL) WHERE 0)) |
+---------------------------------------------------------+
| |
+---------------------------------------------------------+
```
## Expectation
```sql
length 1000000000
sql_length 1000000000
column 2000
expr_depth 1000
compound_select 500
vdbe_op 250000000
function_arg 1000
attached 10
like_pattern_length 50000
variable_number 32766
trigger_depth 1000
worker_threads 0
+---------------------------------------------------------+
| sum((SELECT 1 FROM (SELECT 2 WHERE x IS NULL) WHERE 0)) |
+---------------------------------------------------------+
| |
+---------------------------------------------------------+
```
## Flag
```
-table
```