aboutsummaryrefslogtreecommitdiff
path: root/src/resolve.c
diff options
context:
space:
mode:
authordrh <>2021-02-18 00:26:11 +0000
committerdrh <>2021-02-18 00:26:11 +0000
commitc7e93f58d500971f531215ea96ed99a92144acdf (patch)
tree5d3e084c88b476bbefc3b6218abac41765e809ad /src/resolve.c
parentc54246ffdf51ae0af4d9e39c653571e6e6586cc6 (diff)
downloadsqlite-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.c2
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);
}