Skip to content

Commit 23fb7d1

Browse files
author
D. Richard Hipp
committed
Improvements to the scope of valueFromFunction().
1 parent bca7de5 commit 23fb7d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vdbemem.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,8 @@ static int valueFromFunction(
15341534
goto value_from_function_out;
15351535
}
15361536
for(i=0; i<nVal; i++){
1537-
rc = sqlite3ValueFromExpr(db, pList->a[i].pExpr, enc, aff, &apVal[i]);
1537+
rc = sqlite3Stat4ValueFromExpr(pCtx->pParse, pList->a[i].pExpr, aff,
1538+
&apVal[i]);
15381539
if( apVal[i]==0 || rc!=SQLITE_OK ) goto value_from_function_out;
15391540
}
15401541
}

0 commit comments

Comments
 (0)