From c3439aeebb9422c573304cb2a30aaf5a1bc7f919 Mon Sep 17 00:00:00 2001 From: monolit Date: Thu, 19 Apr 2007 14:36:29 +0000 Subject: [PATCH] Ticket #312 Duplicated params in sql when using LIMIT or OFFSET and MYSQL - due to Doctrine_Query::getQuery() --- lib/Doctrine/Query.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index 0ccfd0c41..a7845e749 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -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;