1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Add a NEVER() on an unreachable branch in comparisonAffinity().

FossilOrigin-Name: 505a2f20eac62d4e170f003255c8984e4f3b0918
This commit is contained in:
drh
2016-08-24 15:37:31 +00:00
parent 7887d7f24d
commit d0b67a8654
3 changed files with 9 additions and 9 deletions

View File

@@ -221,7 +221,7 @@ static char comparisonAffinity(Expr *pExpr){
aff = sqlite3CompareAffinity(pExpr->pRight, aff);
}else if( ExprHasProperty(pExpr, EP_xIsSelect) ){
aff = sqlite3CompareAffinity(pExpr->x.pSelect->pEList->a[0].pExpr, aff);
}else if( !aff ){
}else if( NEVER(aff==0) ){
aff = SQLITE_AFF_BLOB;
}
return aff;