From fb77e2f5d48cd7707ad249a1a937303dbda59964 Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 30 Aug 2006 07:18:02 +0000 Subject: [PATCH] By default mysql connection doesn't use DQL record limit (it doesn't support limit in subqueries yet) --- Doctrine/Connection/Mysql.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Doctrine/Connection/Mysql.php b/Doctrine/Connection/Mysql.php index 73a9bc308..a6d0432c7 100644 --- a/Doctrine/Connection/Mysql.php +++ b/Doctrine/Connection/Mysql.php @@ -11,6 +11,7 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common { */ public function __construct(Doctrine_Manager $manager,PDO $pdo) { $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); + $this->setAttribute(Doctrine::ATTR_QUERY_LIMIT, Doctrine::LIMIT_ROWS); parent::__construct($manager,$pdo); } /**