---
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
## 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
|
||||
CREATE TABLE T (
|
||||
a TEXT,
|
||||
b REAL
|
||||
);
|
||||
INSERT INTO T VALUES ('a',100.0), ('b',-200.5), ('c',9e999);
|
||||
SELECT a,b,
|
||||
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
|
||||
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
|
||||
INSERT INTO T DEFAULT VALUES;
|
||||
ANALYZE T;
|
||||
UPDATE T SET a = 'x' WHERE rowid = 1 RETURNING *;
|
||||
```
|
||||
|
||||
## Actual output
|
||||
|
||||
```sql
|
||||
c|Inf|100.0|1
|
||||
a|100.0|-200.5|1
|
||||
b|-200.5||2
|
||||
x|100
|
||||
```
|
||||
|
||||
## Expectation
|
||||
|
||||
```sql
|
||||
c|Inf|100.0|1
|
||||
a|100.0|-200.5|1
|
||||
b|-200.5||2
|
||||
x|100.0
|
||||
```
|
||||
|
||||
## Flag
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user