diff options
author | drh <> | 2022-03-09 18:29:19 +0000 |
---|---|---|
committer | drh <> | 2022-03-09 18:29:19 +0000 |
commit | 6563d0c11a59e2487c8b05fc0ea9a4517b27afbc (patch) | |
tree | 9010d0f038430fedac0f0c6290f4e16d45fcd35b /src | |
parent | 46dc631a3273373be86400bbd8e9696262b55b27 (diff) | |
download | sqlite-6563d0c11a59e2487c8b05fc0ea9a4517b27afbc.tar.gz sqlite-6563d0c11a59e2487c8b05fc0ea9a4517b27afbc.zip |
Further refinements to the sqlite_offset() fix from [6029514b08b88e3f].
FossilOrigin-Name: 6f838305e2c848a43b210bd1b7b962fb9e3c41de34de778675e6578fcd99f397
Diffstat (limited to 'src')
-rw-r--r-- | src/where.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/where.c b/src/where.c index 9ce65c42b..6705c4d36 100644 --- a/src/where.c +++ b/src/where.c @@ -6150,6 +6150,10 @@ void sqlite3WhereEnd(WhereInfo *pWInfo){ Index *pPk = sqlite3PrimaryKeyIndex(pTab); x = pPk->aiColumn[x]; assert( x>=0 ); +#ifdef SQLITE_ENABLE_OFFSET_SQL_FUNC + }else if( pOp->opcode==OP_Offset ){ + /* Do not need to translate the column number */ +#endif }else{ testcase( x!=sqlite3StorageColumnToTable(pTab,x) ); x = sqlite3StorageColumnToTable(pTab,x); |