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

Fix sqlite3_analyzer so that it works with WITHOUT ROWID tables.

Fix index generation for secondary indices that include fields from
the PRIMARY KEY.

FossilOrigin-Name: f9769d701c65770f4b8488f541c59e508393e6c2
This commit is contained in:
drh
2013-11-01 20:30:36 +00:00
parent bc43ae3d0d
commit 7913e41f6d
5 changed files with 22 additions and 17 deletions

View File

@@ -1524,7 +1524,6 @@ void sqlite3GenerateConstraintChecks(
** PRIMARY KEY value of the match is different from the old PRIMARY KEY
** value from before the update. */
int addrConflict = sqlite3VdbeCurrentAddr(v)+pPk->nKeyCol;
assert( pIdx->nKeyCol + pPk->nKeyCol == pIdx->nColumn );
for(i=0; i<pPk->nKeyCol-1; i++){
sqlite3VdbeAddOp3(v, OP_Ne,
regOldData+pPk->aiColumn[i]+1, addrConflict, regR+i);