1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Asserts added that verify that the code works correctly

that ticket #1849 claims is wrong. (CVS 3254)

FossilOrigin-Name: d145dc1c4bce403ec967bfd0024002d4de57f833
This commit is contained in:
drh
2006-06-15 13:22:22 +00:00
parent 176f4d23c1
commit bdd88bd9f8
3 changed files with 11 additions and 8 deletions

View File

@@ -590,6 +590,7 @@ static char *displayP3(Op *pOp, char *zTemp, int nTemp){
}
}
}
assert( zP3!=0 );
return zP3;
}
#endif
@@ -672,6 +673,7 @@ int sqlite3VdbeList(
pMem->flags = MEM_Static|MEM_Str|MEM_Term;
pMem->z = sqlite3OpcodeNames[pOp->opcode]; /* Opcode */
assert( pMem->z!=0 );
pMem->n = strlen(pMem->z);
pMem->type = SQLITE_TEXT;
pMem->enc = SQLITE_UTF8;
@@ -689,6 +691,7 @@ int sqlite3VdbeList(
pMem->flags = MEM_Ephem|MEM_Str|MEM_Term; /* P3 */
pMem->z = displayP3(pOp, pMem->zShort, sizeof(pMem->zShort));
assert( pMem->z!=0 );
pMem->n = strlen(pMem->z);
pMem->type = SQLITE_TEXT;
pMem->enc = SQLITE_UTF8;