mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Perform updates in search order. Ticket #602. (CVS 1221)
FossilOrigin-Name: cf1cec74ae039cd7cbc8a1032d29f067dedb4210
This commit is contained in:
18
src/vdbe.c
18
src/vdbe.c
@@ -43,7 +43,7 @@
|
||||
** in this file for details. If in doubt, do not deviate from existing
|
||||
** commenting and indentation practices when changing or adding code.
|
||||
**
|
||||
** $Id: vdbe.c,v 1.257 2004/02/08 18:07:35 drh Exp $
|
||||
** $Id: vdbe.c,v 1.258 2004/02/10 13:41:52 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "os.h"
|
||||
@@ -3784,11 +3784,21 @@ case OP_ListWrite: {
|
||||
|
||||
/* Opcode: ListRewind * * *
|
||||
**
|
||||
** Rewind the temporary buffer back to the beginning. This is
|
||||
** now a no-op.
|
||||
** Rewind the temporary buffer back to the beginning.
|
||||
*/
|
||||
case OP_ListRewind: {
|
||||
/* This is now a no-op */
|
||||
/* What this opcode codes, really, is reverse the order of the
|
||||
** linked list of Keylist structures so that they are read out
|
||||
** in the same order that they were read in. */
|
||||
Keylist *pRev, *pTop;
|
||||
pRev = 0;
|
||||
while( p->pList ){
|
||||
pTop = p->pList;
|
||||
p->pList = pTop->pNext;
|
||||
pTop->pNext = pRev;
|
||||
pRev = pTop;
|
||||
}
|
||||
p->pList = pRev;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user