Skip to content

Commit 6f58572

Browse files
author
D. Richard Hipp
committed
Add #ifndef macros so that the build works again with
-DSQLITE_OMIT_AUTHORIZATION and -DSQLITE_OMIT_WINDOWFUNC.
1 parent 5214d1f commit 6f58572

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/resolve.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,11 +636,13 @@ static int lookupName(
636636
lookupname_end:
637637
if( cnt==1 ){
638638
assert( pNC!=0 );
639+
#ifndef SQLITE_OMIT_AUTHORIZATION
639640
if( pParse->db->xAuth
640641
&& (pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER)
641642
){
642643
sqlite3AuthRead(pParse, pExpr, pSchema, pNC->pSrcList);
643644
}
645+
#endif
644646
/* Increment the nRef value on all name contexts from TopNC up to
645647
** the point where the name matched. */
646648
for(;;){

src/whereexpr.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,10 @@ static void exprAnalyzeExists(
12101210
assert( pExpr->op==TK_EXISTS );
12111211
assert( (pExpr->flags & EP_VarSelect) && (pExpr->flags & EP_xIsSelect) );
12121212

1213-
if( (pSel->selFlags & SF_Aggregate) || pSel->pWin ) return;
1213+
if( pSel->selFlags & SF_Aggregate ) return;
1214+
#ifndef SQLITE_OMIT_WINDOWFUNC
1215+
if( pSel->pWin ) return;
1216+
#endif
12141217
if( pSel->pPrior ) return;
12151218
if( pSel->pWhere==0 ) return;
12161219
if( 0==exprAnalyzeExistsFindEq(pSel, 0, 0) ) return;

0 commit comments

Comments
 (0)