1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-21 09:00:59 +03:00

Make sure the query planner knows that the PRIMARY KEY index of a

WITHOUT ROWID table is always a covering index.

FossilOrigin-Name: 03e7019e14255dbeb85bb299569c82ef48ac4a98
This commit is contained in:
drh
2013-11-05 22:39:17 +00:00
parent 8d1b82e40b
commit 1282609b02
3 changed files with 8 additions and 7 deletions

View File

@@ -1658,6 +1658,7 @@ static void convertToWithoutRowidTable(Parse *pParse, Table *pTab){
}else{
pPk = sqlite3PrimaryKeyIndex(pTab);
}
pPk->isCovering = 1;
assert( pPk!=0 );
nPk = pPk->nKeyCol;