---
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
## 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
|
||||
.stats
|
||||
CREATE TABLE t1(a, b TEXT);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS x1 ON t1(b==0);
|
||||
CREATE INDEX IF NOT EXISTS x2 ON t1(a || 0) WHERE b;
|
||||
INSERT INTO t1(a,b) VALUES('a',1),('a',0);
|
||||
SELECT a, b, '|' FROM t1;
|
||||
|
||||
DROP INDEX IF EXISTS t1;
|
||||
```
|
||||
|
||||
## Actual output
|
||||
|
||||
```sql
|
||||
Memory Used: 0 (max 64) bytes
|
||||
Number of Outstanding Allocations: 0 (max 2)
|
||||
Number of Pcache Overflow Bytes: 0 (max 0) bytes
|
||||
Largest Allocation: 40 bytes
|
||||
Largest Pcache Allocation: 0 bytes
|
||||
Bytes received by read(): 6545
|
||||
Bytes sent to write(): 0
|
||||
Read() system calls: 13
|
||||
Write() system calls: 0
|
||||
Bytes read from storage: 0
|
||||
Bytes written to storage: 0
|
||||
Cancelled write bytes: 0
|
||||
a|1||
|
||||
a|0||
|
||||
```
|
||||
|
||||
## Expectation
|
||||
|
||||
```sql
|
||||
Memory Used: 0 (max 56) bytes
|
||||
Number of Outstanding Allocations: 0 (max 2)
|
||||
Number of Pcache Overflow Bytes: 0 (max 0) bytes
|
||||
Largest Allocation: 40 bytes
|
||||
Largest Pcache Allocation: 0 bytes
|
||||
Bytes received by read(): 7321
|
||||
Bytes sent to write(): 0
|
||||
Read() system calls: 14
|
||||
Write() system calls: 0
|
||||
Bytes read from storage: 0
|
||||
Bytes written to storage: 0
|
||||
Cancelled write bytes: 0
|
||||
a|1||
|
||||
a|0||
|
||||
```
|
||||
|
||||
## Flag
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user