Need something that implements the Horde_Db_Adapter interface.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 3 Nov 2010 00:37:31 +0000 (20:37 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 3 Nov 2010 00:43:30 +0000 (20:43 -0400)
...not necessarily something that extends Horde_Db_Adapter_Base

framework/Db/lib/Horde/Db/Migration/Base.php
framework/Db/lib/Horde/Db/Migration/Migrator.php
framework/SQL/SQL.php

index 11f1bfd..1d7f5ac 100644 (file)
@@ -48,7 +48,7 @@ class Horde_Db_Migration_Base
 
     /**
      */
-    public function __construct(Horde_Db_Adapter_Base $connection, $version = null)
+    public function __construct(Horde_Db_Adapter $connection, $version = null)
     {
         $this->_connection = $connection;
         $this->version = $version;
index bdcf1a2..30bf5cb 100644 (file)
@@ -52,7 +52,7 @@ class Horde_Db_Migration_Migrator
      *
      * @throws Horde_Db_Migration_Exception
      */
-    public function __construct(Horde_Db_Adapter_Base $connection,
+    public function __construct(Horde_Db_Adapter $connection,
                                 Horde_Log_Logger $logger = null,
                                 array $options = array())
     {
index 9bedde1..a44486c 100644 (file)
@@ -30,7 +30,7 @@ class Horde_SQL {
      */
     function buildClause($dbh, $lhs, $op, $rhs, $bind = false, $params = array())
     {
-        $type = $dbh instanceof Horde_Db_Adapter_Base ? Horde_String::lower($dbh->adapterName()) : $dbh->phptype;
+        $type = $dbh instanceof Horde_Db_Adapter ? Horde_String::lower($dbh->adapterName()) : $dbh->phptype;
 
         switch ($op) {
         case '|':