diff options
author | drh <drh@noemail.net> | 2017-12-29 15:04:49 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-12-29 15:04:49 +0000 |
commit | 092457b18ce71b6b0f30ea8a67817310feffaebc (patch) | |
tree | e967666936f525c57f84a914d272dcdc22a9c031 /src/where.c | |
parent | fe6d20e9f4d17ad82fd4c4cc69181ad5f52d9d93 (diff) | |
download | sqlite-092457b18ce71b6b0f30ea8a67817310feffaebc.tar.gz sqlite-092457b18ce71b6b0f30ea8a67817310feffaebc.zip |
Change the function name to sqlite_unsupported_offset(X). Only enable the
function if compiled with -DSQLITE_ENABLE_OFFSET_SQL_FUNC. The makefiles add
that definition to shell builds.
FossilOrigin-Name: 7a7f826e324b1a2c332e2f1d0740fd0babffcaca6275a798572f02ad367b99ab
Diffstat (limited to 'src/where.c')
-rw-r--r-- | src/where.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c index 146c8124c..ec5352794 100644 --- a/src/where.c +++ b/src/where.c @@ -5146,7 +5146,11 @@ void sqlite3WhereEnd(WhereInfo *pWInfo){ pOp = sqlite3VdbeGetOp(v, k); for(; k<last; k++, pOp++){ if( pOp->p1!=pLevel->iTabCur ) continue; - if( pOp->opcode==OP_Column || pOp->opcode==OP_Location ){ + if( pOp->opcode==OP_Column +#ifdef SQLITE_ENABLE_OFFSET_SQL_FUNC + || pOp->opcode==OP_Offset +#endif + ){ int x = pOp->p2; assert( pIdx->pTable==pTab ); if( !HasRowid(pTab) ){ |