*/
namespace OC\DB;
+use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Driver;
use Doctrine\DBAL\Configuration;
use Doctrine\DBAL\Cache\QueryCacheProfile;
*/
protected $adapter;
+ public function connect() {
+ try {
+ return parent::connect();
+ } catch (DBALException $e) {
+ // throw a new exception to prevent leaking info from the stacktrace
+ throw new DBALException($e->getMessage(), $e->getCode());
+ }
+ }
+
/**
* @var \Doctrine\DBAL\Driver\Statement[] $preparedQueries
*/