From: drh <> Date: Sat, 25 Mar 2023 23:52:05 +0000 (+0000) Subject: When the left table of a RIGHT JOIN is used inside an aggregate function and the... X-Git-Tag: version-3.42.0~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b900f9e6e8571f266f6d5d2bc22518c598ea92bc;p=thirdparty%2Fsqlite.git When the left table of a RIGHT JOIN is used inside an aggregate function and the left table employs an index on expressions, then make sure the expressions evaluate to NULL for the cases where the left table should be NULL. Fix for [forum:/forumpost/9b491e1deb|forum post 9b491e1deb]. FossilOrigin-Name: ffe23af73fcb324df988a00be343654ce7078b7208647c4eb779d666b8297e7c --- b900f9e6e8571f266f6d5d2bc22518c598ea92bc diff --cc manifest index 0f9117b1ce,20441d9d79..85c614c489 --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C When\sreading\ssqlite_stat4\sdata\sduring\squery\splanning,\sbe\ssure\sto\sexpand\nzeroblobs\sprior\sto\srunning\scomparisons.\s\sFix\sfor\sthe\sissue\sidentified\nby\s[forum:/forumpost/5275207102|forum\spost\s5275207102]. - D 2023-03-25T22:37:23.202 -C Add\susage\sdetection\sto\sthe\sNULL\svalue\sgenerator\sfor\sthe\sleft\stable\sof\sa\nRIGHT\sJOIN\sinside\sof\san\saggregate. -D 2023-03-25T23:40:21.196 ++C When\sthe\sleft\stable\sof\sa\sRIGHT\sJOIN\sis\sused\sinside\san\saggregate\sfunction\sand\sthe\sleft\stable\semploys\san\sindex\son\sexpressions,\sthen\smake\ssure\sthe\sexpressions\sevaluate\sto\sNULL\sfor\sthe\scases\swhere\sthe\sleft\stable\sshould\sbe\sNULL.\sFix\sfor\n[forum:/forumpost/9b491e1deb|forum\spost\s9b491e1deb]. ++D 2023-03-25T23:52:05.666 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724 @@@ -2051,8 -2051,8 +2051,9 @@@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a9 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 - P c104e5c6eeb89575319d9f94f49446142b06912fa8b283c19d46aa2ccddc5bda - R a2c3c428afb2b0766c34c47704a29efd -P 3572b40a7dfc4acc35e72e08e79f64688f8737e57ac89e4d10e6b32bd5178c63 -R c45a71619ca942293d80f31a1a49eea4 ++P 5c8dd8dfcaab9c364b3a126ca35880ef57f5cecbe030771e646c934c8cf43709 4d05a009dfb63bcb4173da4d09ccc00c308ce4dd2534a32aeb23c5d8d6a1fd4b ++R f5cc169fe82411f91415c843e9957996 ++T +closed 4d05a009dfb63bcb4173da4d09ccc00c308ce4dd2534a32aeb23c5d8d6a1fd4b U drh - Z 5b3601bdf9b325a3bd0226a3a60df613 -Z aa39fec11cd82de6900c756e7906d67c ++Z d658d6cec90cfd7621a51815fecf3fc5 # Remove this line to create a well-formed Fossil manifest. diff --cc manifest.uuid index 4c444a3bb6,f9540775bd..84bfa0315c --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - 5c8dd8dfcaab9c364b3a126ca35880ef57f5cecbe030771e646c934c8cf43709 -4d05a009dfb63bcb4173da4d09ccc00c308ce4dd2534a32aeb23c5d8d6a1fd4b ++ffe23af73fcb324df988a00be343654ce7078b7208647c4eb779d666b8297e7c