Skip to content

Commit 0cf3504

Browse files
committed
Fixed errorInfo in pdo exception wrapper.
1 parent 61c8f9a commit 0cf3504

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Cake/Model/Datasource/PDOExceptionWithQueryString.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class PDOExceptionWithQueryString extends PDOException {
1212
public function __construct(PDOException $e) {
1313
parent::__construct($e->getMessage(), 0, $e->getPrevious());
1414

15+
$this->errorInfo = $e->errorInfo;
1516
$this->code = $e->code;
1617
}
1718
}

0 commit comments

Comments
 (0)