diff options
author | drh <drh@noemail.net> | 2015-09-29 17:20:14 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-09-29 17:20:14 +0000 |
commit | 4b92f98ccc298dfcd00c323fa912a22876a4e245 (patch) | |
tree | 1ab4a6bcee6112c6be590ce616c251c0e0a40e7e /src/vdbeblob.c | |
parent | e60856980a961ff8406df0c9b45529dfecadc863 (diff) | |
download | sqlite-4b92f98ccc298dfcd00c323fa912a22876a4e245.tar.gz sqlite-4b92f98ccc298dfcd00c323fa912a22876a4e245.zip |
Use symbolic names XN_ROWID and XN_EXPR in place of the (-1) and (-2)
magic numbers in Index.aiColumn[]. Add asserts to help verify that
Index.aiColumn[] is always used correctly. Fix one place in FK processing
where Index.aiColumn[] was not being used correctly.
FossilOrigin-Name: 7d272aa62cd4cbbf4b5d04e3b918de27671e8301
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r-- | src/vdbeblob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c index 2cdc3edb0..30a329189 100644 --- a/src/vdbeblob.c +++ b/src/vdbeblob.c @@ -248,7 +248,7 @@ int sqlite3_blob_open( int j; for(j=0; j<pIdx->nKeyCol; j++){ /* FIXME: Be smarter about indexes that use expressions */ - if( pIdx->aiColumn[j]==iCol || pIdx->aiColumn[j]==(-2) ){ + if( pIdx->aiColumn[j]==iCol || pIdx->aiColumn[j]==XN_EXPR ){ zFault = "indexed"; } } |