From: Michael Date: Fri, 28 Oct 2016 09:08:13 +0000 (+0000) Subject: We are doing uncommitted reads a little bit different. (We avoid commit) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d78b4e7ffc5338c5256937f27f791cfaf698ab49;p=friendica.git We are doing uncommitted reads a little bit different. (We avoid commit) --- 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; }