Skip to content

Commit

Permalink
Fixed errorInfo in pdo exception wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilwylegala committed Sep 21, 2024
1 parent 61c8f9a commit 0cf3504
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 0cf3504

Please sign in to comment.