1
0
mirror of synced 2025-02-20 14:13:15 +03:00

Minor rawSql fix

This commit is contained in:
zYne 2006-08-20 19:25:04 +00:00
parent 38a4a23c5e
commit f44cc73215
3 changed files with 4 additions and 4 deletions

View File

@ -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":

View File

@ -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));
}

View File

@ -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());