Merge pull request #17949 from nextcloud/debt/deprecated-const

Connection::TRANSACTION_READ_COMMITTED is deprecated
This commit is contained in:
Joas Schilling 2019-12-04 09:49:41 +01:00 committed by GitHub
commit 19935a6a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
/**