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

Fix two faulty assert statements discovered by fuzzing.

FossilOrigin-Name: 799817bfb2bc95963c0e0d70063c4cb15c94ef74
This commit is contained in:
drh
2015-05-22 13:09:50 +00:00
parent 499e15bee1
commit afe028a815
4 changed files with 11 additions and 10 deletions

View File

@@ -42,7 +42,7 @@ void sqlite3OpenTable(
}else{
Index *pPk = sqlite3PrimaryKeyIndex(pTab);
assert( pPk!=0 );
assert( pPk->tnum=pTab->tnum );
assert( pPk->tnum==pTab->tnum );
sqlite3VdbeAddOp3(v, opcode, iCur, pPk->tnum, iDb);
sqlite3VdbeSetP4KeyInfo(pParse, pPk);
VdbeComment((v, "%s", pTab->zName));