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

This commit is contained in:
Kamil Wylegala 2024-09-21 13:04:20 +02:00 committed by GitHub
parent 61c8f9ad25
commit cb3382f6d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,6 +12,7 @@ class PDOExceptionWithQueryString extends PDOException {
public function __construct(PDOException $e) { public function __construct(PDOException $e) {
parent::__construct($e->getMessage(), 0, $e->getPrevious()); parent::__construct($e->getMessage(), 0, $e->getPrevious());
$this->errorInfo = $e->errorInfo;
$this->code = $e->code; $this->code = $e->code;
} }
} }