diff options
Diffstat (limited to 'src/btree.c')
-rw-r--r-- | src/btree.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c index 8057be79b..86b98d671 100644 --- a/src/btree.c +++ b/src/btree.c @@ -9,7 +9,7 @@ ** May you share freely, never taking more than you give. ** ************************************************************************* -** $Id: btree.c,v 1.152 2004/05/30 20:46:09 drh Exp $ +** $Id: btree.c,v 1.153 2004/05/31 08:26:49 danielk1977 Exp $ ** ** This file implements a external (disk-based) database using BTrees. ** For a detailed discussion of BTrees, refer to @@ -4183,3 +4183,17 @@ int sqlite3BtreeCopyFile(Btree *pBtTo, Btree *pBtFrom){ } return rc; } + +/* +** Return non-zero if a transaction is active. +*/ +int sqlite3BtreeIsInTrans(Btree *pBt){ + return (pBt && pBt->inTrans); +} + +/* +** Return non-zero if a statement transaction is active. +*/ +int sqlite3BtreeIsInStmt(Btree *pBt){ + return (pBt && pBt->inStmt); +} |