Skip to content

Commit

Permalink
Merge pull request propelorm#312 from theoreticaLee/master
Browse files Browse the repository at this point in the history
fix incorrect number of parameters when throwing AdapterException
  • Loading branch information
willdurand committed Oct 23, 2012
2 parents ce35e71 + 2304702 commit 1f506d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Propel/Runtime/Adapter/Pdo/PdoAdapter.php
Expand Up @@ -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;
Expand Down

0 comments on commit 1f506d2

Please sign in to comment.