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

Make sure KeyInfo objects on multi-column indices of WITHOUT ROWID tables

have the correct nField and nXField values.  Also, add the
SQLITE_ENABLE_MODULE_COMMENT compile-time option and the VdbeModuleComment()
macro and use it to label entry and exit points of some key routines.

FossilOrigin-Name: 6d9af6065fc0da8337aee2297a8da7511eecccf1
This commit is contained in:
drh
2013-10-30 15:52:32 +00:00
parent 5b843aa032
commit 72ffd09188
7 changed files with 32 additions and 13 deletions

View File

@@ -1271,6 +1271,8 @@ void sqlite3GenerateConstraintChecks(
assert( pTab->pSelect==0 ); /* This table is not a VIEW */
nCol = pTab->nCol;
regData = regRowid + 1;
VdbeModuleComment((v, "BEGIN: GenerateConstraintChecks(%d,%d,%d)",
baseCur, regRowid, pkChng));
/* For WITHOUT ROWID tables, we'll need to know the Index and the cursor
** number for the PRIMARY KEY index */
@@ -1587,6 +1589,7 @@ void sqlite3GenerateConstraintChecks(
if( pbMayReplace ){
*pbMayReplace = seenReplace;
}
VdbeModuleComment((v, "END: GenerateConstraintChecks()"));
}
/*