aboutsummaryrefslogtreecommitdiff
path: root/src/where.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/where.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/where.c')
-rw-r--r--src/where.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/where.c b/src/where.c
index 9850d22cc..9abc8e30f 100644
--- a/src/where.c
+++ b/src/where.c
@@ -6896,6 +6896,7 @@ void sqlite3WhereEnd(WhereInfo *pWInfo){
*/
if( pTabItem->fg.viaCoroutine ){
testcase( pParse->db->mallocFailed );
+ assert( pTabItem->regResult>=0 );
translateColumnToCopy(pParse, pLevel->addrBody, pLevel->iTabCur,
pTabItem->regResult, 0);
continue;