mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix a problem with the handling of NULL values in the min() window function.
FossilOrigin-Name: b76f35b09235d44dc3d176377bbb9c18b7cdc9392800103ff53c54730a427a5c
This commit is contained in:
@ -340,5 +340,17 @@ execsql_float_test 9.7 {
|
||||
SELECT cume_dist() OVER () FROM t1
|
||||
}
|
||||
|
||||
execsql_test 10.0 {
|
||||
DROP TABLE IF EXISTS t7;
|
||||
CREATE TABLE t7(id INTEGER PRIMARY KEY, a INTEGER, b INTEGER);
|
||||
INSERT INTO t7(id, a, b) VALUES
|
||||
(1, 1, 2), (2, 1, NULL), (3, 1, 4),
|
||||
(4, 3, NULL), (5, 3, 8), (6, 3, 1);
|
||||
}
|
||||
execsql_test 10.1 {
|
||||
SELECT id, min(b) OVER (PARTITION BY a ORDER BY id) FROM t7;
|
||||
}
|
||||
|
||||
|
||||
finish_test
|
||||
|
||||
|
Reference in New Issue
Block a user