1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

min() ignores NULL values. Ticket #800. (CVS 1802)

FossilOrigin-Name: 166234a2b61e1d6a501e48dde1caec0a02bec90b
This commit is contained in:
drh
2004-07-18 20:52:32 +00:00
parent e29b1a05a7
commit 9eb516c0eb
9 changed files with 97 additions and 34 deletions

View File

@ -100,7 +100,7 @@ do_test null-3.1 {
select count(*), count(b), count(c), sum(b), sum(c),
avg(b), avg(c), min(b), max(b) from t1;
}
} {7 4 6 2 3 0.5 0.5 {} 1}
} {7 4 6 2 3 0.5 0.5 0 1}
# Check to see how WHERE clauses handle NULL values. A NULL value
# is the same as UNKNOWN. The WHERE clause should only select those