]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Do not consider a DISTINCT clause redundant unless a subset of the result-set is...
authordan <dan@noemail.net>
Fri, 20 Apr 2012 16:59:24 +0000 (16:59 +0000)
committerdan <dan@noemail.net>
Fri, 20 Apr 2012 16:59:24 +0000 (16:59 +0000)
commit6a36f43586c0ad583e9c31e1cb559852a7504142
tree9e624136518957370a384ac84139a9e2f70831c2
parent99f8fb66a44fda5c7e9ab49682d87d31cfb8a570
Do not consider a DISTINCT clause redundant unless a subset of the result-set is collectively subject to a UNIQUE constraint and it can be guaranteed that all columns of the subset are NOT NULL (either due to NOT NULL constraints WHERE clause terms). Fix for [385a5b56b9].

FossilOrigin-Name: 7b8548b1872cc1225355ba8311e93dd08d6526e2
manifest
manifest.uuid
src/where.c
test/distinct.test
test/tkt-385a5b56b9.test [new file with mode: 0644]