Skip to content

Commit e868ce8

Browse files
authored
Merge pull request #572 from utopia-php/feat-shared-db-keyed-cache
Still allow using raw PDO
2 parents 0818b6d + 0cb3f7a commit e868ce8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Database/Adapter/SQL.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,11 @@ public static function getPDOAttributes(): array
14331433

14341434
public function getHostname(): string
14351435
{
1436-
return $this->pdo->getHostname();
1436+
try {
1437+
return $this->pdo->getHostname();
1438+
} catch (\Throwable) {
1439+
return '';
1440+
}
14371441
}
14381442

14391443
/**

0 commit comments

Comments
 (0)