From: dan Date: Mon, 20 Jun 2016 17:25:50 +0000 (+0000) Subject: For a table on the rhs of a LEFT JOIN operator, do not include terms like "IS NULL... X-Git-Tag: version-3.14.0~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee84b0f6906f809771bbf35405a31281a3258d74;p=thirdparty%2Fsqlite.git For a table on the rhs of a LEFT JOIN operator, do not include terms like "IS NULL" from the WHERE clause in the cursor-hint. These may be false for rows that the cursor would otherwise visit, but true for a row of all NULL values generated by the LEFT JOIN. FossilOrigin-Name: 913e595615e2ef40fb431f6e7678f6fc8439782e --- ee84b0f6906f809771bbf35405a31281a3258d74 diff --cc manifest index b6450cc841,a231acf082..f7bf4fc9ff --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Add\sa\smissing\sOP_ColumnsUsed\sopcode\sto\scode\sfor\sexpressions\slike\s"?\sIN\s(SELECT\s...)"\sin\scases\swhere\sexpression\scan\suse\san\sindex\sthat\smay\scontain\sNULL\svalues. - D 2016-06-16T17:14:02.375 -C Allow\sLIKE\soperators\sthat\sappear\sin\sa\sWHERE\sclause\sto\sbe\sincluded\sin\sthe\scursor-hint\sfor\sa\scursor\son\sthe\srhs\sof\sa\sLEFT\sJOIN. -D 2016-06-20T17:22:06.973 ++C For\sa\stable\son\sthe\srhs\sof\sa\sLEFT\sJOIN\soperator,\sdo\snot\sinclude\sterms\slike\s"IS\sNULL"\sfrom\sthe\sWHERE\sclause\sin\sthe\scursor-hint.\sThese\smay\sbe\sfalse\sfor\srows\sthat\sthe\scursor\swould\sotherwise\svisit,\sbut\strue\sfor\sa\srow\sof\sall\sNULL\svalues\sgenerated\sby\sthe\sLEFT\sJOIN. ++D 2016-06-20T17:25:50.750 F Makefile.in f3f7d2060ce03af4584e711ef3a626ef0b1d6340 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc 50149765ef72f4e652b9a0f1f6462c4784bb9423 @@@ -1501,7 -1502,7 +1502,8 @@@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a9 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 - P 48b555c42de1cbc031fb6c2c93ef170e491c7d76 - R 7c056b92500e212b6fa7144618e1e6e0 -P 998095aba01b75f685ed981b377e1dfe650d9bbf ++P 0b1579caf06a2c42433b8bc9dc28c9ad381aa07c 7455d932f5079ffe40462a8c119fc22b8a9bcbcc + R 6b36cf1cbd5dc0e94253a2a90e40c230 ++T +closed 7455d932f5079ffe40462a8c119fc22b8a9bcbcc U dan - Z 6cf13efbb72ea4474e244da36e8952f1 -Z 7f5e55d96c0f8c6a30345a5c923b92ab ++Z 537cf80c06fd3994884c97d3059d4966 diff --cc manifest.uuid index 6347d15d5f,a65de1e449..53806979d6 --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - 0b1579caf06a2c42433b8bc9dc28c9ad381aa07c -7455d932f5079ffe40462a8c119fc22b8a9bcbcc ++913e595615e2ef40fb431f6e7678f6fc8439782e