1
0
mirror of synced 2025-01-31 12:32:59 +03:00

fixed DQL DELETE handling for mysql

This commit is contained in:
zYne 2007-03-02 22:13:05 +00:00
parent 1da5baee10
commit 8bc6813100

View File

@ -591,11 +591,15 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
{ {
switch ($this->type) { switch ($this->type) {
case self::DELETE: case self::DELETE:
/**
no longer needed?
if ($this->conn->getName() == 'Mysql') { if ($this->conn->getName() == 'Mysql') {
$q = 'DELETE ' . end($this->tableAliases) . ' FROM '; $q = 'DELETE ' . end($this->tableAliases) . ' FROM ';
} else { } else {
*/
$q = 'DELETE FROM '; $q = 'DELETE FROM ';
} // }
break; break;
case self::UPDATE: case self::UPDATE:
$q = 'UPDATE '; $q = 'UPDATE ';