Permalink
Browse files

fix incorrect number of parameters when throwing AdapterException

  • Loading branch information...
1 parent ce35e71 commit 2304702f9635d860b619d930b7b6fdf946b1d61d @theoreticaLee theoreticaLee committed Oct 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Propel/Runtime/Adapter/Pdo/PdoAdapter.php
@@ -66,7 +66,7 @@ public function getConnection($conparams)
$con = new PdoConnection($dsn, $user, $password, $driver_options);
$this->initConnection($con, isset($conparams['settings']) && is_array($conparams['settings']) ? $conparams['settings'] : array());
} catch (\PDOException $e) {
- throw new AdapterException("Unable to open PDO connection", $e);
+ throw new AdapterException("Unable to open PDO connection", 0, $e);
}
return $con;

0 comments on commit 2304702

Please sign in to comment.