diff options
author | dan <dan@noemail.net> | 2016-02-01 13:58:56 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2016-02-01 13:58:56 +0000 |
commit | cddb6ba03bdbe25cd0c466c3189a226adc4462ee (patch) | |
tree | 30c8ef61b63eddc74471a4c992d300a4b409f515 /src/wherecode.c | |
parent | b0c886510f9f691ab382c5af82644ba48684a9f3 (diff) | |
download | sqlite-cddb6ba03bdbe25cd0c466c3189a226adc4462ee.tar.gz sqlite-cddb6ba03bdbe25cd0c466c3189a226adc4462ee.zip |
Fix a problem causing the OR/covering-index optimization to be disabled if compile time parameter SQLITE_MAX_ATTACHED were set to greater than 30.
FossilOrigin-Name: a17712bf8d98dd485560f434a5350e6381cf1411
Diffstat (limited to 'src/wherecode.c')
-rw-r--r-- | src/wherecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c index 3fbd198e3..f5f45da39 100644 --- a/src/wherecode.c +++ b/src/wherecode.c @@ -778,7 +778,7 @@ static void codeDeferredSeek( sqlite3VdbeAddOp3(v, OP_Seek, iIdxCur, 0, iCur); if( (pWInfo->wctrlFlags & WHERE_FORCE_TABLE) - && sqlite3ParseToplevel(pParse)->writeMask==0 + && DbMaskAllZero(sqlite3ParseToplevel(pParse)->writeMask) ){ int i; Table *pTab = pIdx->pTable; |