From 8bc68131006344103c919236e8d975085ef702be Mon Sep 17 00:00:00 2001 From: zYne Date: Fri, 2 Mar 2007 22:13:05 +0000 Subject: [PATCH] fixed DQL DELETE handling for mysql --- lib/Doctrine/Query.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index c9ac1787a..c7710ad9b 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -591,11 +591,15 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable { { switch ($this->type) { case self::DELETE: + /** + no longer needed? + if ($this->conn->getName() == 'Mysql') { - $q = 'DELETE ' .end($this->tableAliases) . ' FROM '; + $q = 'DELETE ' . end($this->tableAliases) . ' FROM '; } else { + */ $q = 'DELETE FROM '; - } + // } break; case self::UPDATE: $q = 'UPDATE ';