1
0
mirror of synced 2024-12-14 15:16:04 +03:00
Duplicated params in sql when using LIMIT or OFFSET and MYSQL - due to Doctrine_Query::getQuery()
This commit is contained in:
monolit 2007-04-19 14:36:29 +00:00
parent 44101abceb
commit c3439aeebb

View File

@ -824,7 +824,6 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
switch(strtolower($this->conn->getName())) {
case 'mysql':
// mysql doesn't support LIMIT in subqueries
$params = array_merge($this->params, $params);
$list = $this->conn->execute($subquery, $params)->fetchAll(PDO::FETCH_COLUMN);
$subquery = implode(', ', $list);
break;