From fed8c726e2b7a027dbdd5a03f861614b0e9a9419 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Sat, 3 Dec 2011 09:45:43 -0500 Subject: [PATCH] Ensure all databases are opened with auto commit enabled. --- c_src/bdberl_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/c_src/bdberl_drv.c b/c_src/bdberl_drv.c index b9aad6c..a46e9a0 100644 --- a/c_src/bdberl_drv.c +++ b/c_src/bdberl_drv.c @@ -1169,6 +1169,8 @@ static int open_database(const char* name, DBTYPE type, unsigned int flags, Port } } + flags |= DB_AUTO_COMMIT; + // Attempt to open our database DBGCMD(data, "db->open(%p, 0, '%s', 0, %x, %08x, 0);", db, name, type, flags); rc = db->open(db, 0, name, 0, type, flags, 0);