Minor rawSql fix
This commit is contained in:
parent
38a4a23c5e
commit
f44cc73215
@ -88,8 +88,7 @@ class Doctrine_RawSql extends Doctrine_Hydrate {
|
||||
$p = $low;
|
||||
if( ! isset($parts[$low]))
|
||||
$parts[$low] = array();
|
||||
else
|
||||
$count[$low]++;
|
||||
|
||||
break;
|
||||
case "order":
|
||||
case "group":
|
||||
|
@ -12,6 +12,7 @@ class Doctrine_RawSql_TestCase extends Doctrine_UnitTestCase {
|
||||
$query->parseQuery($sql);
|
||||
|
||||
$this->assertEqual($query->from, array("(SELECT p.* FROM photos p LEFT JOIN photos_tags t ON t.photo_id = p.id WHERE t.tag_id = 65) p LEFT JOIN photos_tags t ON t.photo_id = p.id"));
|
||||
$this->assertEqual($query->where, array('p.can_see = -1 AND t.tag_id = 62'));
|
||||
$this->assertEqual($query->limit, array(200));
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ require_once("QueryLimitTestCase.php");
|
||||
error_reporting(E_ALL);
|
||||
|
||||
$test = new GroupTest("Doctrine Framework Unit Tests");
|
||||
/**
|
||||
|
||||
$test->addTestCase(new Doctrine_RecordTestCase());
|
||||
|
||||
$test->addTestCase(new Doctrine_SessionTestCase());
|
||||
@ -66,7 +66,7 @@ $test->addTestCase(new Doctrine_CollectionTestCase());
|
||||
$test->addTestCase(new Doctrine_QueryTestCase());
|
||||
|
||||
$test->addTestCase(new Doctrine_Query_Limit_TestCase());
|
||||
*/
|
||||
|
||||
$test->addTestCase(new Doctrine_RawSql_TestCase());
|
||||
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
|
||||
//$test->addTestCase(new Doctrine_Cache_SqliteTestCase());
|
||||
|
Loading…
x
Reference in New Issue
Block a user