Make host optional for oci database resources (#5063)

`oci` uses Zend's `Oracle` adapter, which does not use this setting at
all.

fixes #5062
This commit is contained in:
Johannes Meyer 2023-09-07 08:56:54 +02:00 committed by GitHub
commit 0424c66a9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class DbResourceForm extends Form
$offerMysql = true; $offerMysql = true;
} }
if ($dbChoice === 'oracle') { if ($dbChoice === 'oracle' || $dbChoice === 'oci') {
$hostIsRequired = false; $hostIsRequired = false;
} else { } else {
$hostIsRequired = true; $hostIsRequired = true;

View File

@ -406,7 +406,7 @@ class Platform
*/ */
public static function hasOracleSupport() public static function hasOracleSupport()
{ {
return static::extensionLoaded('pdo_oci') && static::classExists('Zend_Db_Adapter_Pdo_Mysql'); return static::extensionLoaded('pdo_oci') && static::classExists('Zend_Db_Adapter_Pdo_Oci');
} }
/** /**