We are doing uncommitted reads a little bit different. (We avoid commit)

This commit is contained in:
Michael 2016-10-28 09:08:13 +00:00
parent 3f0656fdbd
commit d78b4e7ffc
1 changed files with 2 additions and 2 deletions

View 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;
}