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

Code simplifications, especially to the pseudo-table logic, and comment

improvements.

FossilOrigin-Name: 52449a9569b7142095cc88ee208b31cc59a3cab4
This commit is contained in:
drh
2009-09-08 01:14:48 +00:00
parent 417168ade2
commit 3e9ca09453
9 changed files with 104 additions and 137 deletions

View File

@@ -6420,8 +6420,10 @@ static int balance(BtCursor *pCur){
** a positive value if pCur points at an etry that is larger than
** (pKey, nKey)).
**
** If the seekResult parameter is 0, then cursor pCur may point to any
** entry or to no entry at all. In this case this function has to seek
** If the seekResult parameter is non-zero, then the caller guarantees that
** cursor pCur is pointing at the existing copy of a row that is to be
** overwritten. If the seekResult parameter is 0, then cursor pCur may
** point to any entry or to no entry at all and so this function has to seek
** the cursor before the new key can be inserted.
*/
int sqlite3BtreeInsert(
@@ -6433,7 +6435,7 @@ int sqlite3BtreeInsert(
int seekResult /* Result of prior MovetoUnpacked() call */
){
int rc;
int loc = seekResult;
int loc = seekResult; /* -1: before desired location +1: after */
int szNew;
int idx;
MemPage *pPage;