aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2024-12-30 13:54:52 +0000
committerdrh <>2024-12-30 13:54:52 +0000
commit71d6456f59c7008ccb0a8e917d4a9117081bdd66 (patch)
treec59483bf8cfe9de61d4d1066c4dcde382558982a /src
parent6b19c72f26d15317a445b4dd1165b2cba1cd83c5 (diff)
downloadsqlite-71d6456f59c7008ccb0a8e917d4a9117081bdd66.tar.gz
sqlite-71d6456f59c7008ccb0a8e917d4a9117081bdd66.zip
New assert() statements to show that the sqlite3_value.db field is initialized
for MemArrays. FossilOrigin-Name: 7cd8ccf57d1ae0f597ec5004201395f61ef4750728f3c1b9c4dd52d28916a4f7
Diffstat (limited to 'src')
-rw-r--r--src/vdbeaux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index 3d918be32..b9e8b3cdf 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -2144,6 +2144,7 @@ void sqlite3VdbePrintOp(FILE *pOut, int pc, VdbeOp *pOp){
** will be initialized before use.
*/
static void initMemArray(Mem *p, int N, sqlite3 *db, u16 flags){
+ assert( db!=0 );
if( N>0 ){
do{
p->flags = flags;
@@ -2650,6 +2651,7 @@ void sqlite3VdbeMakeReady(
assert( pParse!=0 );
assert( p->eVdbeState==VDBE_INIT_STATE );
assert( pParse==p->pParse );
+ assert( pParse->db==p->db );
p->pVList = pParse->pVList;
pParse->pVList = 0;
db = p->db;