diff options
author | drh <drh@noemail.net> | 2013-10-22 18:01:40 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-10-22 18:01:40 +0000 |
commit | bbbdc83b52cc704f1dcc8f1456ad9f1445e3b384 (patch) | |
tree | e0d925d89395420a1982cb5d3e6297484ae43cbe /src/vdbeblob.c | |
parent | 77e57dfbc8f40ecfdab70be2514165d5c74e914c (diff) | |
download | sqlite-bbbdc83b52cc704f1dcc8f1456ad9f1445e3b384.tar.gz sqlite-bbbdc83b52cc704f1dcc8f1456ad9f1445e3b384.zip |
The Index object now has nKeyCol and nColumn. nColumn is the total number
of columns and nKeyCol is the number of key columns. Currently these always
differ by one. Refactor aiColumn[] to be of type i16 instead of int.
FossilOrigin-Name: a106ce86cd4afd1f81603826de77df1fb25e9ab5
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 2e8fd8ee7..4953579c6 100644 --- a/src/vdbeblob.c +++ b/src/vdbeblob.c @@ -235,7 +235,7 @@ int sqlite3_blob_open( #endif for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){ int j; - for(j=0; j<pIdx->nColumn; j++){ + for(j=0; j<pIdx->nKeyCol; j++){ if( pIdx->aiColumn[j]==iCol ){ zFault = "indexed"; } |