aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/Connection.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/DB/Connection.php')
-rw-r--r--lib/private/DB/Connection.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index ecc6d09bc95..55e61a7be14 100644
--- a/lib/private/DB/Connection.php
+++ b/lib/private/DB/Connection.php
@@ -117,7 +117,7 @@ class Connection extends PrimaryReadReplicaConnection {
private array $params,
Driver $driver,
?Configuration $config = null,
- ?EventManager $eventManager = null
+ ?EventManager $eventManager = null,
) {
if (!isset($params['adapter'])) {
throw new \Exception('adapter not set');
@@ -664,9 +664,9 @@ class Connection extends PrimaryReadReplicaConnection {
$msg = $this->errorCode() . ': ';
$errorInfo = $this->errorInfo();
if (!empty($errorInfo)) {
- $msg .= 'SQLSTATE = '.$errorInfo[0] . ', ';
- $msg .= 'Driver Code = '.$errorInfo[1] . ', ';
- $msg .= 'Driver Message = '.$errorInfo[2];
+ $msg .= 'SQLSTATE = ' . $errorInfo[0] . ', ';
+ $msg .= 'Driver Code = ' . $errorInfo[1] . ', ';
+ $msg .= 'Driver Message = ' . $errorInfo[2];
}
return $msg;
}