We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f25cc1 commit e6eadcaCopy full SHA for e6eadca
1 file changed
src/Database/DriverException.php
@@ -25,6 +25,8 @@ class DriverException extends \PDOException
25
public static function from(\PDOException $src)
26
{
27
$e = new static($src->message, 0, $src);
28
+ $e->file = $src->file;
29
+ $e->line = $src->line;
30
if (!$src->errorInfo && preg_match('#SQLSTATE\[(.*?)\] \[(.*?)\] (.*)#A', $src->message, $m)) {
31
$m[2] = (int) $m[2];
32
$e->errorInfo = array_slice($m, 1);
0 commit comments