aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-06-03 01:24:54 +0000
committerdrh <drh@noemail.net>2009-06-03 01:24:54 +0000
commit50d654da3b6768d4ec65e54405fc9763ff3a58d4 (patch)
tree430016c42e2c66a6ae293c5dd0bff48a66da8cf0 /src/where.c
parente98c9049a0a56ea8c3a704a986298f1dc5a9af2f (diff)
downloadsqlite-50d654da3b6768d4ec65e54405fc9763ff3a58d4.tar.gz
sqlite-50d654da3b6768d4ec65e54405fc9763ff3a58d4.zip
Additional changes to reduce stack usage. The SQLITE_SMALL_STACK compile-time
option is now available. (CVS 6708) FossilOrigin-Name: baea79fd0cfeb860973846c3f2776776c87f0ae3
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/where.c b/src/where.c
index 48651ceb9..d0f0b01d6 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.399 2009/05/28 01:00:55 drh Exp $
+** $Id: where.c,v 1.400 2009/06/03 01:24:54 drh Exp $
*/
#include "sqliteInt.h"
@@ -132,7 +132,11 @@ struct WhereClause {
int nTerm; /* Number of terms */
int nSlot; /* Number of entries in a[] */
WhereTerm *a; /* Each a[] describes a term of the WHERE cluase */
- WhereTerm aStatic[4]; /* Initial static space for a[] */
+#if defined(SQLITE_SMALL_STACK)
+ WhereTerm aStatic[1]; /* Initial static space for a[] */
+#else
+ WhereTerm aStatic[8]; /* Initial static space for a[] */
+#endif
};
/*