Ticket #312
Duplicated params in sql when using LIMIT or OFFSET and MYSQL - due to Doctrine_Query::getQuery()
This commit is contained in:
parent
44101abceb
commit
c3439aeebb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user