Connection::TRANSACTION_READ_COMMITTED is deprecated

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-11-14 20:16:51 +01:00
parent 51d3f98bfb
commit 9cb7252880
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

View file

@ -38,6 +38,7 @@ use Doctrine\Common\EventManager;
use Doctrine\DBAL\Platforms\MySqlPlatform; use Doctrine\DBAL\Platforms\MySqlPlatform;
use Doctrine\DBAL\Exception\ConstraintViolationException; use Doctrine\DBAL\Exception\ConstraintViolationException;
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\TransactionIsolationLevel;
use OC\DB\QueryBuilder\QueryBuilder; use OC\DB\QueryBuilder\QueryBuilder;
use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection; use OCP\IDBConnection;
@ -148,7 +149,7 @@ class Connection extends ReconnectWrapper implements IDBConnection {
$this->adapter = new $params['adapter']($this); $this->adapter = new $params['adapter']($this);
$this->tablePrefix = $params['tablePrefix']; $this->tablePrefix = $params['tablePrefix'];
parent::setTransactionIsolation(parent::TRANSACTION_READ_COMMITTED); $this->setTransactionIsolation(TransactionIsolationLevel::READ_COMMITTED);
} }
/** /**