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

Fix a problem with processing INTEGER PRIMARY KEY on a WITHOUT ROWID table.

FossilOrigin-Name: 89098e6d18dacd1554cf4471b5f035db85d1f327
This commit is contained in:
drh
2013-11-04 17:00:50 +00:00
parent 6546af1480
commit 5838340b0e
4 changed files with 20 additions and 20 deletions

View File

@@ -1848,10 +1848,12 @@ void sqlite3Pragma(
Index *pIdx;
if( HasRowid(pTab) ){
sqlite3VdbeAddOp2(v, OP_Integer, pTab->tnum, 2+cnt);
VdbeComment((v, "%s", pTab->zName));
cnt++;
}
for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){
sqlite3VdbeAddOp2(v, OP_Integer, pIdx->tnum, 2+cnt);
VdbeComment((v, "%s", pIdx->zName));
cnt++;
}
}