mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Changes to make regression tests in rowid.test pass. (CVS 1373)
FossilOrigin-Name: 790226c94493a6d58a7e52fd3ed35ef495fab11e
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
** May you share freely, never taking more than you give.
|
||||
**
|
||||
*************************************************************************
|
||||
** $Id: btree.c,v 1.132 2004/05/13 11:34:16 danielk1977 Exp $
|
||||
** $Id: btree.c,v 1.133 2004/05/13 13:38:52 danielk1977 Exp $
|
||||
**
|
||||
** This file implements a external (disk-based) database using BTrees.
|
||||
** For a detailed discussion of BTrees, refer to
|
||||
@@ -3284,7 +3284,7 @@ int sqlite3BtreeInsert(
|
||||
if( pCur->status ){
|
||||
return pCur->status; /* A rollback destroyed this cursor */
|
||||
}
|
||||
if( !pBt->inTrans || nKey+nData==0 ){
|
||||
if( !pBt->inTrans ){
|
||||
/* Must start a transaction before doing an insert */
|
||||
return pBt->readOnly ? SQLITE_READONLY : SQLITE_ERROR;
|
||||
}
|
||||
|
Reference in New Issue
Block a user