From 9cb725288085fddff4c9f489191d7ad58d897850 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Thu, 14 Nov 2019 20:16:51 +0100 Subject: [PATCH] Connection::TRANSACTION_READ_COMMITTED is deprecated Signed-off-by: Daniel Kesselberg --- lib/private/DB/Connection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index 506f4bcd4c..e14323594d 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -38,6 +38,7 @@ use Doctrine\Common\EventManager; use Doctrine\DBAL\Platforms\MySqlPlatform; use Doctrine\DBAL\Exception\ConstraintViolationException; use Doctrine\DBAL\Schema\Schema; +use Doctrine\DBAL\TransactionIsolationLevel; use OC\DB\QueryBuilder\QueryBuilder; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\IDBConnection; @@ -148,7 +149,7 @@ class Connection extends ReconnectWrapper implements IDBConnection { $this->adapter = new $params['adapter']($this); $this->tablePrefix = $params['tablePrefix']; - parent::setTransactionIsolation(parent::TRANSACTION_READ_COMMITTED); + $this->setTransactionIsolation(TransactionIsolationLevel::READ_COMMITTED); } /**