diff options
author | drh <drh@noemail.net> | 2014-11-18 20:22:05 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-11-18 20:22:05 +0000 |
commit | bea3b976a95b00968d6f3ca496d5c1dfd3104527 (patch) | |
tree | 0591ed858a5bd6b30af9f4371fc2313b4763422f /src | |
parent | 58f95c43adb7e26452e3136f55ee40a12c479d7d (diff) | |
download | sqlite-bea3b976a95b00968d6f3ca496d5c1dfd3104527.tar.gz sqlite-bea3b976a95b00968d6f3ca496d5c1dfd3104527.zip |
Fix a bug in the sqlite3TripAllCursors() routine that prevents it from
reporting errors. It is unknown at this time whether or not this omission can
result in any incorrect result in an actual query.
FossilOrigin-Name: 2896f2640ab3e102ee248d20fb68c497817524eb
Diffstat (limited to 'src')
-rw-r--r-- | src/btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c index f153a0cc4..7a49fb1a7 100644 --- a/src/btree.c +++ b/src/btree.c @@ -3541,7 +3541,7 @@ int sqlite3BtreeTripAllCursors(Btree *pBtree, int errCode, int writeOnly){ int i; if( writeOnly && (p->curFlags & BTCF_WriteFlag)==0 ){ if( p->eState==CURSOR_VALID ){ - int rc = saveCursorPosition(p); + rc = saveCursorPosition(p); if( rc!=SQLITE_OK ){ (void)sqlite3BtreeTripAllCursors(pBtree, rc, 0); break; |