From 4b354eeae3247e2c8c1bf131f6e98c0d124abfaf Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 6 May 2025 16:33:47 +1200 Subject: [PATCH] Still allow using raw PDO --- src/Database/Adapter/SQL.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Database/Adapter/SQL.php b/src/Database/Adapter/SQL.php index e6479e1f5..c2907b88d 100644 --- a/src/Database/Adapter/SQL.php +++ b/src/Database/Adapter/SQL.php @@ -1433,7 +1433,11 @@ public static function getPDOAttributes(): array public function getHostname(): string { - return $this->pdo->getHostname(); + try { + return $this->pdo->getHostname(); + } catch (\Throwable) { + return ''; + } } /**