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:
commit
0424c66a9c
|
@ -58,7 +58,7 @@ class DbResourceForm extends Form
|
|||
$offerMysql = true;
|
||||
}
|
||||
|
||||
if ($dbChoice === 'oracle') {
|
||||
if ($dbChoice === 'oracle' || $dbChoice === 'oci') {
|
||||
$hostIsRequired = false;
|
||||
} else {
|
||||
$hostIsRequired = true;
|
||||
|
|
|
@ -406,7 +406,7 @@ class Platform
|
|||
*/
|
||||
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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue