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

Fix for ticket #78: Avoid an assertion failure when sqlite_close() to be

called in the middle of a transaction. (CVS 634)

FossilOrigin-Name: 2532792a5875f9cc0f7d8eaf90dd49d1f6025ca3
This commit is contained in:
drh
2002-06-21 11:55:48 +00:00
parent ef1360635c
commit bb3a6dbd2e
3 changed files with 9 additions and 8 deletions

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
** $Id: main.c,v 1.81 2002/06/20 11:36:49 drh Exp $
** $Id: main.c,v 1.82 2002/06/21 11:55:49 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -467,6 +467,7 @@ void sqlite_close(sqlite *db){
if( sqliteSafetyCheck(db) || sqliteSafetyOn(db) ){ return; }
db->magic = SQLITE_MAGIC_CLOSED;
sqliteBtreeClose(db->pBe);
sqliteRollbackInternalChanges(db);
clearHashTable(db, 0);
if( db->pBeTemp ){
sqliteBtreeClose(db->pBeTemp);