constructPdoDsn($params), $username, $password, $driverOptions ); } catch (PDOException $e) { throw Exception::driverException($this, $e); } } /** * Constructs the Oracle PDO DSN. * * @param mixed[] $params * * @return string The DSN. */ private function constructPdoDsn(array $params) { $dsn = 'oci:dbname=' . $this->getEasyConnectString($params); if (isset($params['charset'])) { $dsn .= ';charset=' . $params['charset']; } return $dsn; } /** * {@inheritdoc} */ public function getName() { Deprecation::trigger( 'doctrine/dbal', 'https://github.com/doctrine/dbal/issues/3580', 'Driver::getName() is deprecated' ); return 'pdo_oracle'; } }