1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix a bug in the left outer join logic. (CVS 758)

FossilOrigin-Name: 6c0f44bd6374010f7a4a091e585eb36e0665f96f
This commit is contained in:
drh
2002-09-30 12:36:26 +00:00
parent 294fb92b50
commit c8f8b632c3
4 changed files with 27 additions and 12 deletions

View File

@ -13,7 +13,7 @@
** the WHERE clause of SQL statements. Also found here are subroutines
** to generate VDBE code to evaluate expressions.
**
** $Id: where.c,v 1.64 2002/08/28 03:01:01 drh Exp $
** $Id: where.c,v 1.65 2002/09/30 12:36:26 drh Exp $
*/
#include "sqliteInt.h"
@ -425,6 +425,7 @@ WhereInfo *sqliteWhereBegin(
** form ROWID<expr or ROWID<=expr set iDirectLt[i] to the term index.
** For terms like ROWID>expr or ROWID>=expr set iDirectGt[i].
*/
pWInfo->a[i].iCur = -1;
iDirectEq[i] = -1;
iDirectLt[i] = -1;
iDirectGt[i] = -1;
@ -577,8 +578,6 @@ WhereInfo *sqliteWhereBegin(
if( pBestIdx ){
pWInfo->a[i].iCur = pParse->nTab++;
pWInfo->peakNTab = pParse->nTab;
}else{
pWInfo->a[i].iCur = -1;
}
}