1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Initial implementation of LEFT OUTER JOIN including the expanded SQL92 join

syntax. The basic functionality is there but there is still a lot of testing
to do. (CVS 587)

FossilOrigin-Name: 99bd1f5b9a1a20bfeefe15c00d96a34a5f40923e
This commit is contained in:
drh
2002-05-24 20:31:36 +00:00
parent 01f3f25376
commit ad2d8307ac
10 changed files with 313 additions and 39 deletions

View File

@@ -30,7 +30,7 @@
** But other routines are also provided to help in building up
** a program instruction by instruction.
**
** $Id: vdbe.c,v 1.147 2002/05/24 02:04:34 drh Exp $
** $Id: vdbe.c,v 1.148 2002/05/24 20:31:37 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -3452,8 +3452,12 @@ case OP_Next: {
if( VERIFY( i>=0 && i<p->nCursor && ) (pCrsr = p->aCsr[i].pCursor)!=0 ){
int res;
rc = sqliteBtreeNext(pCrsr, &res);
p->aCsr[i].nullRow = res;
if( p->aCsr[i].nullRow ){
res = 1;
}else{
rc = sqliteBtreeNext(pCrsr, &res);
p->aCsr[i].nullRow = res;
}
if( res==0 ){
pc = pOp->p2 - 1;
sqlite_search_count++;