From b254399733865f423a2f755feda1e06366a3b0a0 Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 14 Mar 2007 19:57:38 +0000 Subject: [PATCH] fixes #286 --- lib/Doctrine/Db.php | 3 ++- lib/Doctrine/Manager.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Db.php b/lib/Doctrine/Db.php index 750ab65a8..80330f2d3 100644 --- a/lib/Doctrine/Db.php +++ b/lib/Doctrine/Db.php @@ -341,6 +341,7 @@ class Doctrine_Db implements Countable, IteratorAggregate, Doctrine_Adapter_Inte case 'oci8': case 'mssql': case 'firebird': + case 'dblib': case 'pgsql': case 'odbc': case 'mock': @@ -430,7 +431,7 @@ class Doctrine_Db implements Countable, IteratorAggregate, Doctrine_Adapter_Inte $stmt = $this->dbh->prepare($statement); return $stmt->execute($params); - + } else { if ( ! $skip) { $stmt = $this->dbh->query($statement); diff --git a/lib/Doctrine/Manager.php b/lib/Doctrine/Manager.php index c2f34a3b5..c32136c93 100644 --- a/lib/Doctrine/Manager.php +++ b/lib/Doctrine/Manager.php @@ -219,6 +219,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera $this->connections[$name] = new Doctrine_Connection_Oracle($this, $adapter); break; case 'mssql': + case 'dblib': $this->connections[$name] = new Doctrine_Connection_Mssql($this, $adapter); break; case 'firebird':