diff options
author | drh <drh@noemail.net> | 2003-01-29 14:06:07 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-01-29 14:06:07 +0000 |
commit | 326dce74511a963dba56c046a86e82193c44e128 (patch) | |
tree | 0d60f783771ac4eefc7698de64031c2ac883e5ae /src/select.c | |
parent | b86ccfb26ec22446a99b12c38e295b5505201556 (diff) | |
download | sqlite-326dce74511a963dba56c046a86e82193c44e128.tar.gz sqlite-326dce74511a963dba56c046a86e82193c44e128.zip |
The callback-free API is now working, though much more testing is need. (CVS 853)
FossilOrigin-Name: 162b259188e6967fe9c3722da26b81aab5655d83
Diffstat (limited to 'src/select.c')
-rw-r--r-- | src/select.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/select.c b/src/select.c index 29b1f9e3a..4998a5352 100644 --- a/src/select.c +++ b/src/select.c @@ -12,7 +12,7 @@ ** This file contains C code routines that are called by the parser ** to handle SELECT statements in SQLite. ** -** $Id: select.c,v 1.123 2003/01/19 03:59:47 drh Exp $ +** $Id: select.c,v 1.124 2003/01/29 14:06:09 drh Exp $ */ #include "sqliteInt.h" @@ -697,7 +697,9 @@ static void generateColumnTypes( ){ Vdbe *v = pParse->pVdbe; int i; - if( (pParse->db->flags & SQLITE_ReportTypes)==0 ) return; + if( pParse->useCallback && (pParse->db->flags & SQLITE_ReportTypes)==0 ){ + return; + } for(i=0; i<pEList->nExpr; i++){ Expr *p = pEList->a[i].pExpr; char *zType = 0; @@ -1456,7 +1458,9 @@ static int multiSelect(Parse *pParse, Select *p, int eDest, int iParm){ /* Issue a null callback if that is what the user wants. */ - if( (pParse->db->flags & SQLITE_NullCallback)!=0 && eDest==SRT_Callback ){ + if( eDest==SRT_Callback && + (pParse->useCallback==0 || (pParse->db->flags & SQLITE_NullCallback)!=0) + ){ sqliteVdbeAddOp(v, OP_NullCallback, p->pEList->nExpr, 0); } return 0; @@ -2306,7 +2310,9 @@ int sqliteSelect( /* Issue a null callback if that is what the user wants. */ - if( (pParse->db->flags & SQLITE_NullCallback)!=0 && eDest==SRT_Callback ){ + if( eDest==SRT_Callback && + (pParse->useCallback==0 || (pParse->db->flags & SQLITE_NullCallback)!=0) + ){ sqliteVdbeAddOp(v, OP_NullCallback, pEList->nExpr, 0); } |