diff options
author | drh <drh@noemail.net> | 2017-05-15 15:12:24 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-05-15 15:12:24 +0000 |
commit | dd1bb43ab53cc8ab624988ec78157e7e6d0e73ff (patch) | |
tree | 9f4b7af21dd37edaca36f02f9ddd4335be95541b /src/expr.c | |
parent | 96a27f4cbb9a71e3f117029af91e7cc29bf9ce3a (diff) | |
download | sqlite-dd1bb43ab53cc8ab624988ec78157e7e6d0e73ff.tar.gz sqlite-dd1bb43ab53cc8ab624988ec78157e7e6d0e73ff.zip |
Fix the build so that it works again with SQLITE_OMIT_SUBQUERY.
FossilOrigin-Name: bb0d9281588b8cc24bf2f1f10d0c56277004226adaa2ce5037782503b283b45d
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expr.c b/src/expr.c index b5d4ed1f9..8fc727fcd 100644 --- a/src/expr.c +++ b/src/expr.c @@ -352,7 +352,6 @@ int sqlite3ExprVectorSize(Expr *pExpr){ } } -#ifndef SQLITE_OMIT_SUBQUERY /* ** Return a pointer to a subexpression of pVector that is the i-th ** column of the vector (numbered starting with 0). The caller must @@ -380,9 +379,7 @@ Expr *sqlite3VectorFieldSubexpr(Expr *pVector, int i){ } return pVector; } -#endif /* !defined(SQLITE_OMIT_SUBQUERY) */ -#ifndef SQLITE_OMIT_SUBQUERY /* ** Compute and return a new Expr object which when passed to ** sqlite3ExprCode() will generate all necessary code to compute @@ -440,7 +437,6 @@ Expr *sqlite3ExprForVectorField( } return pRet; } -#endif /* !define(SQLITE_OMIT_SUBQUERY) */ /* ** If expression pExpr is of type TK_SELECT, generate code to evaluate @@ -3411,7 +3407,11 @@ static int exprCodeVector(Parse *pParse, Expr *p, int *piFreeable){ }else{ *piFreeable = 0; if( p->op==TK_SELECT ){ +#if SQLITE_OMIT_SUBQUERY + iResult = 0; +#else iResult = sqlite3CodeSubselect(pParse, p, 0, 0); +#endif }else{ int i; iResult = pParse->nMem+1; |