mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Merge all recent enhancements and fixes from trunk.
FossilOrigin-Name: 199bfb67fdf642cca6cd5d460fa4dc602b94837a
This commit is contained in:
20
src/vdbe.c
20
src/vdbe.c
@@ -3521,6 +3521,26 @@ case OP_Close: {
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef SQLITE_ENABLE_COLUMN_USED_MASK
|
||||
/* Opcode: ColumnsUsed P1 * * P4 *
|
||||
**
|
||||
** This opcode (which only exists if SQLite was compiled with
|
||||
** SQLITE_ENABLE_COLUMN_USED_MASK) identifies which columns of the
|
||||
** table or index for cursor P1 are used. P4 is a 64-bit integer
|
||||
** (P4_INT64) in which the first 63 bits are one for each of the
|
||||
** first 63 columns of the table or index that are actually used
|
||||
** by the cursor. The high-order bit is set if any column after
|
||||
** the 64th is used.
|
||||
*/
|
||||
case OP_ColumnsUsed: {
|
||||
VdbeCursor *pC;
|
||||
pC = p->apCsr[pOp->p1];
|
||||
assert( pC->pCursor );
|
||||
pC->maskUsed = *(u64*)pOp->p4.pI64;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Opcode: SeekGE P1 P2 P3 P4 *
|
||||
** Synopsis: key=r[P3@P4]
|
||||
**
|
||||
|
Reference in New Issue
Block a user