53 lines
831 B
Markdown
53 lines
831 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 case_sensitive_like = ON;
|
|
PRAGMA full_column_names = NO;
|
|
PRAGMA count_changes = 1;
|
|
.mode
|
|
DROP TABLE IF EXISTS t1;
|
|
CREATE TABLE t1 (c0, c1 REAL PRIMARY KEY);
|
|
INSERT INTO t1(c0, c1) VALUES (0, 1), (0, 0);
|
|
UPDATE t1 SET c0 = NULL;
|
|
UPDATE OR REPLACE t1 SET c1 = 1;
|
|
SELECT DISTINCT * FROM t1 WHERE NOT NOT ((t1.c0 IS NULL)) ;
|
|
PRAGMA integrity_check;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_t1_1624 ON t1((c0 + 1)) WHERE c0 > 0;
|
|
SELECT COUNT(c0) FROM t1;
|
|
```
|
|
|
|
## Actual output
|
|
|
|
```sql
|
|
current output mode: list
|
|
2
|
|
2
|
|
2
|
|
|1.0
|
|
ok
|
|
0
|
|
```
|
|
|
|
## Expectation
|
|
|
|
```sql
|
|
current output mode: list --escape ascii
|
|
2
|
|
2
|
|
2
|
|
|1.0
|
|
ok
|
|
0
|
|
```
|
|
|
|
## Flag
|
|
|
|
```
|
|
|
|
```
|
|
|