aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-03-06 23:51:16 +0000
committerdrh <drh@noemail.net>2017-03-06 23:51:16 +0000
commit59dbe3a5efcd5ea47ef6038a861dc4d76838a43f (patch)
tree87433c906901ed514453b6668a61143294ff0139 /src
parente1f1c0802cb9644cdb23df28a7b76fe71095f492 (diff)
downloadsqlite-59dbe3a5efcd5ea47ef6038a861dc4d76838a43f.tar.gz
sqlite-59dbe3a5efcd5ea47ef6038a861dc4d76838a43f.zip
Make the default MASK argument for "PRAGMA optimize" be 0xfffe, to allow for
future expansion of up to 14 new default-on optimizations. FossilOrigin-Name: 73019a8bba29fd07f73559cd00d5346fa822b439
Diffstat (limited to 'src')
-rw-r--r--src/pragma.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pragma.c b/src/pragma.c
index aa7ebc879..2901f4bdc 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -1892,10 +1892,10 @@ void sqlite3Pragma(
** 0x0008 (Not yet implemented) Create indexes that might have
** been helpful to recent queries
**
- ** The default MASK is 0x000e, which means perform all of the optimizations
- ** listed above except do not set Debug Mode. New optimizations may be
- ** added in future releases but they will be turned off by default. The
- ** default MASK will always be 0x0e.
+ ** The default MASK is and always shall be 0xfffe. 0xfffe means perform all ** of the optimizations listed above except Debug Mode, including new
+ ** optimizations that have not yet been invented. If new optimizations are
+ ** ever added that should be off by default, those off-by-default
+ ** optimizations will have bitmasks of 0x10000 or larger.
**
** DETERMINATION OF WHEN TO RUN ANALYZE
**
@@ -1930,7 +1930,7 @@ void sqlite3Pragma(
opMask = (u32)sqlite3Atoi(zRight);
if( (opMask & 0x02)==0 ) break;
}else{
- opMask = 0xe;
+ opMask = 0xfffe;
}
iTabCur = pParse->nTab++;
for(iDbLast = zDb?iDb:db->nDb-1; iDb<=iDbLast; iDb++){