Skip to content

Commit

Permalink
code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilwylegala committed Sep 21, 2024
1 parent 56b97b2 commit ea1e1a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Cake/Model/Datasource/PDOExceptionWithQueryString.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class PDOExceptionWithQueryString extends PDOException {
* @param PDOException $e Source exception.
*/
public function __construct(PDOException $e) {
parent::__construct($e->getMessage(), $e->getCode(), $e->getPrevious());
parent::__construct($e->getMessage(), 0, $e->getPrevious());

$this->code = $e->code;
}
}

0 comments on commit ea1e1a9

Please sign in to comment.