1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

A simple change that allows the SQLITE_32BIT_ROWID compile-time option to

work better.

FossilOrigin-Name: f9df4063fbd100ce306a89fc649c1860fd801f31
This commit is contained in:
drh
2012-02-24 00:02:28 +00:00
parent 63296052a1
commit a40eb7cfee
3 changed files with 8 additions and 8 deletions

View File

@@ -3844,7 +3844,7 @@ case OP_NewRowid: { /* out2-prerelease */
assert( sqlite3BtreeCursorIsValid(pC->pCursor) );
rc = sqlite3BtreeKeySize(pC->pCursor, &v);
assert( rc==SQLITE_OK ); /* Cannot fail following BtreeLast() */
if( v==MAX_ROWID ){
if( v>=MAX_ROWID ){
pC->useRandomRowid = 1;
}else{
v++; /* IMP: R-29538-34987 */