Remove 'read' and 'write_db' from DSN. We should probably better use separate
authorJan Schneider <jan@horde.org>
Mon, 31 May 2010 12:20:51 +0000 (14:20 +0200)
committerJan Schneider <jan@horde.org>
Mon, 31 May 2010 16:22:31 +0000 (18:22 +0200)
properties for parameters and other optional objects/arrays.

framework/Db/lib/Horde/Db/Adapter/Pdo/Mysql.php

index 938172d..1404721 100644 (file)
@@ -94,7 +94,9 @@ class Horde_Db_Adapter_Pdo_Mysql extends Horde_Db_Adapter_Pdo_Base
         unset(
             $dsnOpts['adapter'],
             $dsnOpts['username'],
-            $dsnOpts['password']
+            $dsnOpts['password'],
+            $dsnOpts['read'],
+            $dsnOpts['write_db']
         );
         $dsnOpts = $this->_normalizeConfig($dsnOpts);