diff options
author | danielk1977 <danielk1977@noemail.net> | 2006-06-27 12:16:56 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2006-06-27 12:16:56 +0000 |
commit | 3851a65e3a4af58b20898f9b9a756c4007e7c5ab (patch) | |
tree | 69c9f732423a4756b82d2d87df6d9bf0921ec66a /src | |
parent | ac743e292dd8d3063f4513dc0f2b9c9e90cfebe1 (diff) | |
download | sqlite-3851a65e3a4af58b20898f9b9a756c4007e7c5ab.tar.gz sqlite-3851a65e3a4af58b20898f9b9a756c4007e7c5ab.zip |
Fix bug in transfer of arguments from WHERE clause to virtual table xFilter() methods. (CVS 3305)
FossilOrigin-Name: cf41f2a33f94c6c94fb39ae6ffcd58bbf9ea88c8
Diffstat (limited to 'src')
-rw-r--r-- | src/where.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/where.c b/src/where.c index b6b748d5a..b3e383d1f 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.226 2006/06/27 02:36:58 drh Exp $ +** $Id: where.c,v 1.227 2006/06/27 12:16:56 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -2045,7 +2045,7 @@ WhereInfo *sqlite3WhereBegin( int k; for(k=0; k<nConstraint; k++){ if( aUsage[k].argvIndex==j ){ - int iTerm = aConstraint[j-1].iTermOffset; + int iTerm = aConstraint[k].iTermOffset; sqlite3ExprCode(pParse, wc.a[iTerm].pExpr->pRight); break; } |