From: drh Date: Fri, 24 Aug 2012 23:56:19 +0000 (+0000) Subject: When the same index is used for all OR-terms in a WHERE clause, then try to X-Git-Tag: version-3.7.14~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0b9729242bf68fc407eb22c522a0308e83cd0c2;p=thirdparty%2Fsqlite.git When the same index is used for all OR-terms in a WHERE clause, then try to use that index as a covering index. FossilOrigin-Name: 62678be3df35cdcb09172ba8c860f7b73517f1ea --- f0b9729242bf68fc407eb22c522a0308e83cd0c2 diff --cc manifest index 09414718bc,2bf121ccfb..f48746c07c --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Merge\sthe\snested\saggregate\squery\senhancements\sinto\strunk. - D 2012-08-24T01:07:52.214 -C Move\sfield\sWhereLevel.pCovidx\sinside\sthe\sunion\sto\sWhereLevel.u.pCovidx. -D 2012-08-24T23:24:15.128 ++C When\sthe\ssame\sindex\sis\sused\sfor\sall\sOR-terms\sin\sa\sWHERE\sclause,\sthen\stry\sto\nuse\sthat\sindex\sas\sa\scovering\sindex. ++D 2012-08-24T23:56:19.679 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in abd5c10d21d1395f140d9e50ea999df8fa4d6376 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@@ -1012,7 -1013,7 +1013,7 @@@ F tool/vdbe-compress.tcl d70ea6d8a19e35 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381 F tool/win/sqlite.vsix 67d8a99aceb56384a81b3f30d6c71743146d2cc9 - P 20f184f2d5908badd9d44d4fe2ad7c9e182c8803 00b1dc71be4c3420730b5f7840af824ea86165e7 - R c1fab8e17aa8935c76d7626b4d7fe139 -P 5499af53ebcdc21ae288aa2347aa21f6891d79ef ++P d4cd6017c9875947a05b1dc36538d4272fb18739 b722143d075979ba3d92b7b29e576ce2307187d1 + R d51bc6dccf316fa29f046fa529eea646 U drh - Z 3e9a3890be18a0a197379668b716e1a3 -Z cc4f76d0f6e610d4f3bf10f9821bb4e6 ++Z 88e4cd6b2ce7efc36bc2db59aa6b0ac5 diff --cc manifest.uuid index 78d216df97,8a0b944a29..100c67b276 --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - d4cd6017c9875947a05b1dc36538d4272fb18739 -b722143d075979ba3d92b7b29e576ce2307187d1 ++62678be3df35cdcb09172ba8c860f7b73517f1ea