Need to convert hostspec as well
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 18 Feb 2009 18:18:56 +0000 (13:18 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 18 Feb 2009 18:19:25 +0000 (13:19 -0500)
framework/Db/lib/Horde/Db/Adapter/Pdo/Abstract.php

index 51cffd6..1f9be22 100644 (file)
@@ -188,7 +188,7 @@ abstract class Horde_Db_Adapter_Pdo_Abstract extends Horde_Db_Adapter_Abstract
         unset($dsnOpts['adapter'], $dsnOpts['username'], $dsnOpts['password']);
 
         // rewrite rails config key names to pdo equivalents
-        $rails2pdo = array('database' => 'dbname', 'socket' => 'unix_socket');
+        $rails2pdo = array('database' => 'dbname', 'socket' => 'unix_socket', 'hostspec' => 'host');
         foreach ($rails2pdo as $from => $to) {
             if (isset($dsnOpts[$from])) {
                 $dsnOpts[$to] = $dsnOpts[$from];