diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index 305b35b03..d35670ed5 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -514,7 +514,7 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable { { switch($this->type) { case self::DELETE: - if($this->conn->getName() == 'mysql') + if($this->conn->getName() == 'Mysql') $q = 'DELETE '.end($this->tableAliases).' FROM '; else $q = 'DELETE FROM ';