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:
@@ -1658,6 +1658,7 @@ static void convertToWithoutRowidTable(Parse *pParse, Table *pTab){
|
||||
}else{
|
||||
pPk = sqlite3PrimaryKeyIndex(pTab);
|
||||
}
|
||||
pPk->isCovering = 1;
|
||||
assert( pPk!=0 );
|
||||
nPk = pPk->nKeyCol;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user