aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2024-03-11 17:27:19 +0000
committerdan <Dan Kennedy>2024-03-11 17:27:19 +0000
commit815e055bff42d57f49cf46cc70771cdcf5930d83 (patch)
treea23d064d4d7ea012f510076fab54aec6bcb93f6a /src/expr.c
parent5dfff386e53a0ec1acd9854f676f9c2dda0cf25e (diff)
downloadsqlite-815e055bff42d57f49cf46cc70771cdcf5930d83.tar.gz
sqlite-815e055bff42d57f49cf46cc70771cdcf5930d83.zip
Attempt to reduce the memory used by VALUES clauses in as many statements as possible, not just INSERT. This branch still has problems.
FossilOrigin-Name: 17d1f7cfabc7593d0725051b0c7c9619a23a482265f30f15ab9493fef5caeeb0
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c
index 6640d1907..e4bfa995d 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -1869,6 +1869,7 @@ SrcList *sqlite3SrcListDup(sqlite3 *db, const SrcList *p, int flags){
pNewItem->iCursor = pOldItem->iCursor;
pNewItem->addrFillSub = pOldItem->addrFillSub;
pNewItem->regReturn = pOldItem->regReturn;
+ pNewItem->regResult = pOldItem->regResult;
if( pNewItem->fg.isIndexedBy ){
pNewItem->u1.zIndexedBy = sqlite3DbStrDup(db, pOldItem->u1.zIndexedBy);
}