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.
2 parents e305435 + d4058b8 commit b828c65Copy full SHA for b828c65
src/Drivers/Pdo/Connection.php
@@ -25,7 +25,8 @@ public function query($query)
25
try {
26
$statement->execute();
27
} catch (PDOException $exception) {
28
- throw new DatabaseException($exception->getMessage() . ' [' . $query . ']', $exception->getCode(), $exception);
+ throw new DatabaseException('[' . $exception->getCode() . '] ' . $exception->getMessage() . ' [' . $query . ']',
29
+ (int)$exception->getCode(), $exception);
30
}
31
32
return new ResultSet(new ResultSetAdapter($statement));
0 commit comments