From 7a9b161587d131adb4f91a3050d9f549d19173ed Mon Sep 17 00:00:00 2001 From: tpoindex Date: Mon, 3 Jan 2005 18:13:18 +0000 Subject: [PATCH] add comment that table is accessed by primary key (CVS 2177) FossilOrigin-Name: 707690c5f2e1340bbbb4cb06e6b2b76a2a3b5f0d --- manifest | 14 +++++++------- manifest.uuid | 2 +- src/where.c | 4 +++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/manifest b/manifest index 301f23877d..87fe4086cf 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Allow\sGROUP\sBY\son\saggregate\squeries\sonly.\s\sTicket\s#1039.\s(CVS\s2176) -D 2005-01-03T02:26:55 +C add\scomment\sthat\stable\sis\saccessed\sby\sprimary\skey\s(CVS\s2177) +D 2005-01-03T18:13:18 F Makefile.in 02a184d734a2b4bbbc1ecc2e3ef504fcb13de069 F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457 F README a01693e454a00cc117967e3f9fdab2d4d52e9bc1 @@ -82,7 +82,7 @@ F src/vdbeInt.h 0f74561e629af86172de7cdf0ecaea014c51696c F src/vdbeapi.c 0cf3bdc1072616bedc8eec7fc22e3f5a169d33fd F src/vdbeaux.c a7c4c90786e2633b38f2d89f3dc49aed747454e4 F src/vdbemem.c 5876c8abf4374fef671f4fd8dc333ef3fc95a2f0 -F src/where.c 4eb44da11a733b8cb5fe251827fbdf3f1f3efb1c +F src/where.c 2fc4efc7375eb7f1ae18030311bcd6a18e3a0f46 F tclinstaller.tcl 36478c3bbfc5b93ceac42d94e3c736937b808432 F test/all.test 853e7030ab20a602eeb7a155124ae37f24ff9ffd F test/alter.test 95c57a4f461fa81293e0dccef7f83889aadb169a @@ -263,7 +263,7 @@ F www/tclsqlite.tcl e73f8f8e5f20e8277619433f7970060ab01088fc F www/vdbe.tcl 095f106d93875c94b47367384ebc870517431618 F www/version3.tcl 092a01f5ef430d2c4acc0ae558d74c4bb89638a0 F www/whentouse.tcl c3b50d3ac31c54be2a1af9b488a89d22f1e6e746 -P 586acc85b170f84d6e0dbd2e293da19551242f5a -R c1ae268dc0136a18c28ff0175de82e93 -U drh -Z 018f05f19285dfae08f6eeee539520e6 +P 8ef2c644ebce851d7a3e0db3b2266fc2519485cd +R dd62c94048d308a653f861b2ec0c06fd +U tpoindex +Z b6724cb230e911dd0c5adace8536d3a6 diff --git a/manifest.uuid b/manifest.uuid index 8262c7172a..61cba8f96a 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -8ef2c644ebce851d7a3e0db3b2266fc2519485cd \ No newline at end of file +707690c5f2e1340bbbb4cb06e6b2b76a2a3b5f0d \ No newline at end of file diff --git a/src/where.c b/src/where.c index 7579948ff0..a7d8df6839 100644 --- a/src/where.c +++ b/src/where.c @@ -16,7 +16,7 @@ ** so is applicable. Because this module is responsible for selecting ** indices, you might also think of this module as the "query optimizer". ** -** $Id: where.c,v 1.126 2005/01/03 01:28:51 drh Exp $ +** $Id: where.c,v 1.127 2005/01/03 18:13:18 tpoindex Exp $ */ #include "sqliteInt.h" @@ -995,6 +995,7 @@ WhereInfo *sqlite3WhereBegin( cont = pLevel->cont = sqlite3VdbeMakeLabel(v); sqlite3VdbeAddOp(v, OP_MustBeInt, 1, brk); sqlite3VdbeAddOp(v, OP_NotExists, iCur, brk); + VdbeComment((v, "pk")); pLevel->op = OP_Noop; }else if( pIdx!=0 && pLevel->score>3 && (pLevel->score&0x0c)==0 ){ /* Case 2: There is an index and all terms of the WHERE clause that @@ -1080,6 +1081,7 @@ WhereInfo *sqlite3WhereBegin( sqlite3ExprCode(pParse, pX->pRight); sqlite3VdbeAddOp(v, OP_ForceInt, pX->op==TK_LT || pX->op==TK_GT, brk); sqlite3VdbeAddOp(v, bRev ? OP_MoveLt : OP_MoveGe, iCur, brk); + VdbeComment((v, "pk")); disableTerm(pLevel, &pTerm->p); }else{ sqlite3VdbeAddOp(v, bRev ? OP_Last : OP_Rewind, iCur, brk);