Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
[+BUGFIX] Fixed incorrect PDO_Oci platform recognition
Browse files Browse the repository at this point in the history
When instanciating the PDO driver with pdo_oci, it will return "Oci" as
platform name which is not correct. The correct Platform name is
"Oracle"
  • Loading branch information
tux-rampage committed Mar 5, 2013
1 parent e09ba97 commit b7f4dd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/Zend/Db/Adapter/Driver/Pdo/Pdo.php
Expand Up @@ -187,6 +187,9 @@ public function getDatabasePlatformName($nameFormat = self::NAME_FORMAT_CAMELCAS
switch ($name) {
case 'pgsql':
return 'Postgresql';
case 'oci':
return 'Oracle';

default:
return ucfirst($name);
}
Expand All @@ -198,6 +201,8 @@ public function getDatabasePlatformName($nameFormat = self::NAME_FORMAT_CAMELCAS
return 'MySQL';
case 'pgsql':
return 'PostgreSQL';
case 'oci':
return 'Oracle';
default:
return ucfirst($name);
}
Expand Down

0 comments on commit b7f4dd0

Please sign in to comment.