]> git.mxchange.org Git - friendica.git/commitdiff
We are doing uncommitted reads a little bit different. (We avoid commit)
authorMichael <heluecht@pirati.ca>
Fri, 28 Oct 2016 09:08:13 +0000 (09:08 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 28 Oct 2016 09:08:13 +0000 (09:08 +0000)
include/dba.php

index 56cc6c1781e4a38a904776b761b7552c6442174c..082a54bd496694875cb7756974f049c2f065a179 100644 (file)
@@ -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;
        }