aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2001-10-19 16:44:56 +0000
committerdrh <drh@noemail.net>2001-10-19 16:44:56 +0000
commit6a535340bc31d7178cd8422a09a7ef144bf9ea4d (patch)
treeee6a560a5f8c485b669f32a1b6c9bcc0f6ce2adb /src/select.c
parent98808babd3efdc2bb3b8b0884eda76abe6e32477 (diff)
downloadsqlite-6a535340bc31d7178cd8422a09a7ef144bf9ea4d.tar.gz
sqlite-6a535340bc31d7178cd8422a09a7ef144bf9ea4d.zip
Version 2.0.6 (CVS 291)
FossilOrigin-Name: 8467d84fc6e67bd93051f54338a8f6c9b1711ee1
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c
index 49e8f02cd..c0e8961a6 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.41 2001/10/18 12:34:47 drh Exp $
+** $Id: select.c,v 1.42 2001/10/19 16:44:57 drh Exp $
*/
#include "sqliteInt.h"
@@ -994,5 +994,13 @@ int sqliteSelect(
generateSortTail(v, pEList->nExpr);
}
pParse->nTab = base;
+
+
+ /* Issue a null callback if that is what the user wants.
+ */
+ if( (pParse->db->flags & SQLITE_NullCallback)!=0 && eDest==SRT_Callback ){
+ sqliteVdbeAddOp(v, OP_NullCallback, pEList->nExpr, 0);
+ }
+
return 0;
}