Commit fb77e2f5 authored by zYne's avatar zYne

By default mysql connection doesn't use DQL record limit (it doesn't support...

By default mysql connection doesn't use DQL record limit (it doesn't support limit in subqueries yet)
parent 85a799ea
......@@ -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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment