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

Remove an unreachable branch from sqlite3ExprAffinity()

FossilOrigin-Name: 9d96f61481704e5ec399ee425f0ebb246902ecc5
This commit is contained in:
drh
2016-08-26 01:02:09 +00:00
parent 3cc19132da
commit a28f85b076
3 changed files with 9 additions and 8 deletions

View File

@@ -51,8 +51,9 @@ char sqlite3ExprAffinity(Expr *pExpr){
return sqlite3AffinityType(pExpr->u.zToken, 0);
}
#endif
if( (op==TK_AGG_COLUMN || op==TK_COLUMN) && pExpr->pTab!=0 ){
if( op==TK_AGG_COLUMN || op==TK_COLUMN ){
int j = pExpr->iColumn;
assert( pExpr->pTab!=0 );
if( j<0 ) return SQLITE_AFF_INTEGER;
assert( pExpr->pTab && j<pExpr->pTab->nCol );
return pExpr->pTab->aCol[j].affinity;