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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user