diff options
author | drh <> | 2021-02-18 00:26:11 +0000 |
---|---|---|
committer | drh <> | 2021-02-18 00:26:11 +0000 |
commit | c7e93f58d500971f531215ea96ed99a92144acdf (patch) | |
tree | 5d3e084c88b476bbefc3b6218abac41765e809ad /src/resolve.c | |
parent | c54246ffdf51ae0af4d9e39c653571e6e6586cc6 (diff) | |
download | sqlite-c7e93f58d500971f531215ea96ed99a92144acdf.tar.gz sqlite-c7e93f58d500971f531215ea96ed99a92144acdf.zip |
Performance optimization in the code generator for INSERT for the common
case where the target table has neither generated nor hidden columns.
Also fix a redundant (and thus unreachable) branch in the resolver.
FossilOrigin-Name: 16ac213c57196361a9d14df4c0d1ccc6f67ac522365b345ea364d1aec61fa3f2
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve.c b/src/resolve.c index 4848e3cfa..afb73664f 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -82,7 +82,7 @@ static void resolveAlias( db = pParse->db; pDup = sqlite3ExprDup(db, pOrig, 0); if( pDup!=0 ){ - if( nSubquery ) incrAggFunctionDepth(pDup, nSubquery); + incrAggFunctionDepth(pDup, nSubquery); if( pExpr->op==TK_COLLATE ){ pDup = sqlite3ExprAddCollateString(pParse, pDup, pExpr->u.zToken); } |