Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add documentation for the OP_SorterInsert opcode, formerly omitted by mistake. No changes to code. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
16d88a907730e3773a1320dbaf1f82c2 |
User & Date: | drh 2016-10-15 18:37:05 |
Context
2016-10-17
| ||
00:48 | Small size reduction and performance increase in the string duplicator. check-in: cda998f0 user: drh tags: trunk | |
2016-10-15
| ||
18:37 | Add documentation for the OP_SorterInsert opcode, formerly omitted by mistake. No changes to code. check-in: 16d88a90 user: drh tags: trunk | |
08:56 | Add test case to hook.test. No changes to non-test code. check-in: 2674d779 user: dan tags: trunk | |
Changes
Changes to src/vdbe.c.
5034 5034 ** If P5 has the OPFLAG_USESEEKRESULT bit set, then the cursor must have 5035 5035 ** just done a seek to the spot where the new entry is to be inserted. 5036 5036 ** This flag avoids doing an extra seek. 5037 5037 ** 5038 5038 ** This instruction only works for indices. The equivalent instruction 5039 5039 ** for tables is OP_Insert. 5040 5040 */ 5041 +/* Opcode: SorterInsert P1 P2 * * * 5042 +** Synopsis: key=r[P2] 5043 +** 5044 +** Register P2 holds an SQL index key made using the 5045 +** MakeRecord instructions. This opcode writes that key 5046 +** into the sorter P1. Data for the entry is nil. 5047 +*/ 5041 5048 case OP_SorterInsert: /* in2 */ 5042 5049 case OP_IdxInsert: { /* in2 */ 5043 5050 VdbeCursor *pC; 5044 5051 BtreePayload x; 5045 5052 5046 5053 assert( pOp->p1>=0 && pOp->p1<p->nCursor ); 5047 5054 pC = p->apCsr[pOp->p1];