Skip to content

Commit

Permalink
Fixed errorInfo in pdo exception wrapper. (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilwylegala authored Sep 21, 2024
1 parent 61c8f9a commit cb3382f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Model/Datasource/PDOExceptionWithQueryString.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class PDOExceptionWithQueryString extends PDOException {
public function __construct(PDOException $e) {
parent::__construct($e->getMessage(), 0, $e->getPrevious());

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

0 comments on commit cb3382f

Please sign in to comment.