summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2019-12-04 09:49:41 +0100
committerGitHub <noreply@github.com>2019-12-04 09:49:41 +0100
commit19935a6a26d70e0a7e9ee757f8519a11179bf1fd (patch)
tree14221d405f249963857d8956ba017566bb0b87ee
parent0fe1d2a53077b904483c9562e2cfc8fad3b97138 (diff)
parent9cb725288085fddff4c9f489191d7ad58d897850 (diff)
downloadnextcloud-server-19935a6a26d70e0a7e9ee757f8519a11179bf1fd.tar.gz
nextcloud-server-19935a6a26d70e0a7e9ee757f8519a11179bf1fd.zip
Merge pull request #17949 from nextcloud/debt/deprecated-const
Connection::TRANSACTION_READ_COMMITTED is deprecated
-rw-r--r--lib/private/DB/Connection.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index f9c6f4155a3..65e1d84bfb1 100644
--- a/lib/private/DB/Connection.php
+++ b/lib/private/DB/Connection.php
@@ -38,6 +38,7 @@ use Doctrine\DBAL\Driver;
use Doctrine\DBAL\Exception\ConstraintViolationException;
use Doctrine\DBAL\Platforms\MySqlPlatform;
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);
}
/**