aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2014-01-15 19:42:23 +0000
committerdan <dan@noemail.net>2014-01-15 19:42:23 +0000
commiteede6a538d32de61cc644e09fcb90264496791ac (patch)
tree877e439636db59a5dc45d1d4cb5bca8ed7465b42 /src/expr.c
parentc49832c208283ee22b107d00246af355585320a9 (diff)
downloadsqlite-eede6a538d32de61cc644e09fcb90264496791ac.tar.gz
sqlite-eede6a538d32de61cc644e09fcb90264496791ac.zip
Fixes so that SQLITE_OMIT_CTE builds work.
FossilOrigin-Name: 3908e2ea2e7e5f466cbbbffdc27e0fe8dc9751ac
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c
index 9a288b73b..68bb2fe53 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -900,6 +900,7 @@ static Expr *exprDup(sqlite3 *db, Expr *p, int flags, u8 **pzBuffer){
** argument. If an OOM condition is encountered, NULL is returned
** and the db->mallocFailed flag set.
*/
+#ifndef SQLITE_OMIT_CTE
static With *withDup(sqlite3 *db, With *p){
With *pRet = 0;
if( p ){
@@ -917,6 +918,9 @@ static With *withDup(sqlite3 *db, With *p){
}
return pRet;
}
+#else
+# define withDup(x,y) 0
+#endif
/*
** The following group of routines make deep copies of expressions,