diff options
author | drh <drh@noemail.net> | 2016-08-26 03:42:57 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-08-26 03:42:57 +0000 |
commit | 64bcb8cfbb6898d4554de7d88c1ed42dca2c2709 (patch) | |
tree | ff798fbf56f2ea0051f992055f8f7fbedcb19431 /src/expr.c | |
parent | a28f85b076be5ca68ef53b59291feab0153dc735 (diff) | |
download | sqlite-64bcb8cfbb6898d4554de7d88c1ed42dca2c2709.tar.gz sqlite-64bcb8cfbb6898d4554de7d88c1ed42dca2c2709.zip |
Comment improvements. Put ALWAYS and NEVER macros on three unreachable
branches.
FossilOrigin-Name: 397617009e07004596476d6f5644fdf84c376f54
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/expr.c b/src/expr.c index 982605d19..f0670799e 100644 --- a/src/expr.c +++ b/src/expr.c @@ -2443,9 +2443,9 @@ int sqlite3CodeSubselect( ExprList *pEList = pSelect->pEList; assert( !isRowid ); - if( pEList->nExpr!=nVal ){ - sqlite3SubselectError(pParse, pEList->nExpr, nVal); - }else{ + /* If the LHS and RHS of the IN operator do not match, that + ** error will have been caught long before we reach this point. */ + if( ALWAYS(pEList->nExpr==nVal) ){ SelectDest dest; int i; sqlite3SelectDestInit(&dest, SRT_Set, pExpr->iTable); |