diff options
author | drh <drh@noemail.net> | 2019-06-14 17:37:39 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-06-14 17:37:39 +0000 |
commit | c164cc992f48ff70b569ca3acd143cbb41f7c03c (patch) | |
tree | b28cbdaa6c7357ee754ae76030ec7b82b68ee629 /src | |
parent | 821afa44c13e1bbe0de726dbace1145bf38b057f (diff) | |
download | sqlite-c164cc992f48ff70b569ca3acd143cbb41f7c03c.tar.gz sqlite-c164cc992f48ff70b569ca3acd143cbb41f7c03c.zip |
Deprecate the SQLITE_ALLOW_COVERING_INDEX_SCAN compile-time option when it is
turned off. This probably will impact no-one. If it does, they will get an
error message instructing them to contact developers, so that we can get
feedback that somebody is actually using this feature. Start-time disabling
of covering index scan is not affected.
FossilOrigin-Name: 23e49f9984f74f242602c6e56bfc645585c7c86bcdd585c322ab0d8e20958d86
Diffstat (limited to 'src')
-rw-r--r-- | src/global.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/global.c b/src/global.c index a78ea65a7..b512e6f0b 100644 --- a/src/global.c +++ b/src/global.c @@ -153,8 +153,15 @@ const unsigned char sqlite3CtypeMap[256] = { ** SQLITE_ALLOW_COVERING_INDEX_SCAN compile-time option, or is "on" if ** that compile-time option is omitted. */ -#ifndef SQLITE_ALLOW_COVERING_INDEX_SCAN +#if !defined(SQLITE_ALLOW_COVERING_INDEX_SCAN) # define SQLITE_ALLOW_COVERING_INDEX_SCAN 1 +#else +# if !SQLITE_ALLOW_COVERING_INDEX_SCAN +# error "Compile-time disabling of covering index scan using the\ + -DSQLITE_ALLOW_COVERING_INDEX_SCAN=0 option is deprecated.\ + Contact SQLite developers if this is a problem for you, and\ + delete this #error macro to continue with your build." +# endif #endif /* The minimum PMA size is set to this value multiplied by the database |