]> git.ipfire.org Git - thirdparty/sqlite.git/commit
In the query flattener when substituting expression Y in place of expression X,
authordrh <drh@noemail.net>
Wed, 30 Sep 2020 15:36:03 +0000 (15:36 +0000)
committerdrh <drh@noemail.net>
Wed, 30 Sep 2020 15:36:03 +0000 (15:36 +0000)
commitaf3711536b96e90ab11d8181819f90be371a4689
tree2a819ea0bb7b73a0feac5e92f4e00aa974105f4d
parent1e6c58dee291617e85fe1ef056d5d36bd5b6a5f2
In the query flattener when substituting expression Y in place of expression X,
if X is marked has having come from an ON or USING clause of a LEFT JOIN, then
be sure that all subexpressions of Y, not just the root node of Y, are
similarly marked.  Otherwise, if Y is an AND operator, it will be split up
during WHERE clause analysis and the subexpressions will not get the special
treatment needed by LEFT JOIN ON/USING clauses.
Fix for ticket [66e4b0e271c47145].

FossilOrigin-Name: 69f9eb7343a416c5ab426c8e1b9f0ae576544b4ccc5d87f5481c8ff884f696e1
manifest
manifest.uuid
src/select.c
test/join.test