From d78b4e7ffc5338c5256937f27f791cfaf698ab49 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 28 Oct 2016 09:08:13 +0000 Subject: [PATCH] We are doing uncommitted reads a little bit different. (We avoid commit) --- include/dba.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dba.php b/include/dba.php index 56cc6c1781..082a54bd49 100644 --- a/include/dba.php +++ b/include/dba.php @@ -397,9 +397,9 @@ function qu($sql) { $stmt = @vsprintf($sql,$args); // Disabled warnings if ($stmt === false) logger('dba: vsprintf error: ' . print_r(debug_backtrace(),true), LOGGER_DEBUG); - $db->q("SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;"); + $db->q("SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;"); $retval = $db->q($stmt); - $db->q("COMMIT;"); + $db->q("SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;"); return $retval; } -- 2.39.5