mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-25 08:17:18 +00:00
Fixed errorInfo in pdo exception wrapper. (#78)
Some checks failed
PHP Coding Standard / phpcs (7.4) (push) Has been cancelled
Tests / linux-tests (mysql, 8.0) (push) Has been cancelled
Tests / linux-tests (mysql, 8.1) (push) Has been cancelled
Tests / linux-tests (pgsql, 8.0) (push) Has been cancelled
Tests / linux-tests (sqlite, 8.0) (push) Has been cancelled
Some checks failed
PHP Coding Standard / phpcs (7.4) (push) Has been cancelled
Tests / linux-tests (mysql, 8.0) (push) Has been cancelled
Tests / linux-tests (mysql, 8.1) (push) Has been cancelled
Tests / linux-tests (pgsql, 8.0) (push) Has been cancelled
Tests / linux-tests (sqlite, 8.0) (push) Has been cancelled
This commit is contained in:
parent
61c8f9ad25
commit
cb3382f6d2
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue