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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user